Merge lp:~ricmm/platform-api/v2-loader-first-take into lp:platform-api

Proposed by Ricardo Mendoza
Status: Superseded
Proposed branch: lp:~ricmm/platform-api/v2-loader-first-take
Merge into: lp:platform-api
Diff against target: 3039 lines (+1239/-865) (has conflicts)
51 files modified
CMakeLists.txt (+12/-30)
android/default/default_ubuntu_application_sensor.cpp (+109/-58)
android/hybris/Android.mk (+24/-2)
android/hybris/test_alarms_api.cpp (+62/-0)
android/hybris/test_sensors_c_api.cpp (+8/-4)
android/hybris/ubuntu_hardware_alarms_for_hybris.cpp (+197/-0)
data/CMakeLists.txt (+6/-2)
data/ubuntu-platform-hardware-api.pc.in (+10/-0)
debian/control (+24/-45)
debian/libplatform-api1-dev.install (+0/-4)
debian/libplatform-api1-doc.doc-base (+0/-8)
debian/libplatform-api1-doc.install (+0/-1)
debian/libplatform-api1-hybris-tests.install (+0/-6)
debian/libplatform-hardware-api1-dev.install (+1/-1)
debian/libubuntu-application-api-mirclient1.install (+0/-1)
debian/libubuntu-application-api-mirclient1.symbols (+0/-126)
debian/libubuntu-application-api-mirserver1.install (+0/-1)
debian/libubuntu-application-api-mirserver1.symbols (+0/-128)
debian/libubuntu-application-api-test1.docs (+0/-1)
debian/libubuntu-application-api-test1.install (+0/-1)
debian/libubuntu-application-api1.install (+0/-1)
debian/libubuntu-application-api1.symbols (+0/-130)
debian/rules (+1/-4)
doc/Doxyfile.in (+1/-1)
include/ubuntu/application/sensors/accelerometer.h (+9/-6)
include/ubuntu/application/sensors/event/accelerometer.h (+9/-6)
include/ubuntu/application/sensors/event/light.h (+3/-2)
include/ubuntu/application/sensors/light.h (+9/-6)
include/ubuntu/application/sensors/proximity.h (+9/-6)
include/ubuntu/application/sensors/ubuntu_application_sensors.h (+6/-3)
include/ubuntu/hardware/CMakeLists.txt (+2/-1)
include/ubuntu/hardware/alarm.h (+98/-0)
src/ubuntu/CMakeLists.txt (+39/-22)
src/ubuntu/common/CMakeLists.txt (+8/-0)
src/ubuntu/common/mirclient/CMakeLists.txt (+10/-16)
src/ubuntu/common/mirclient/ubuntu_application_api_mirclient.cpp (+9/-0)
src/ubuntu/common/mircommon/CMakeLists.txt (+0/-14)
src/ubuntu/common/mircommon/ubuntu_application_sensors_desktop.cpp (+119/-54)
src/ubuntu/common/mirserver/CMakeLists.txt (+12/-19)
src/ubuntu/common/mirserver/ubuntu_application_api_mirserver.cpp (+12/-3)
src/ubuntu/desktop/CMakeLists.txt (+62/-0)
src/ubuntu/testbackend/ubuntu_application_sensors.cpp (+119/-67)
src/ubuntu/touch/CMakeLists.txt (+64/-0)
src/ubuntu/touch/hybris/CMakeLists.txt (+15/-30)
src/ubuntu/touch/hybris/bridge.h (+1/-17)
src/ubuntu/touch/hybris/tests/CMakeLists.txt (+4/-4)
src/ubuntu/touch/hybris/tests/test_alarms_api.cpp (+62/-0)
src/ubuntu/touch/hybris/tests/test_sensors_api.cpp (+10/-4)
src/ubuntu/touch/hybris/ubuntu_application_sensors_hybris.cpp (+13/-13)
src/ubuntu/touch/hybris/ubuntu_platform_hardware_api.cpp (+35/-0)
tests/test_ubuntu_application_sensors.cpp (+45/-17)
Text conflict in src/ubuntu/common/mirserver/ubuntu_application_api_mirserver.cpp
To merge this branch: bzr merge lp:~ricmm/platform-api/v2-loader-first-take
Reviewer Review Type Date Requested Status
Ubuntu Phablet Team Pending
Review via email: mp+218057@code.launchpad.net

Commit message

V2 - loadable backend architecture

To post a comment you must log in.

Unmerged revisions

214. By Ricardo Mendoza

API/ABI bump to ver2
 * Loadable backend architecture
 * Global test separation
 * Groundwork for platform hardware API v2

213. By Ricardo Mendoza

Merge lp:~thomas-voss/platform-api/hw-alarms-api

212. By Ricardo Mendoza

lp:~phablet-team/platform-api/to-gcc-4.8

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2014-03-31 17:59:47 +0000
3+++ CMakeLists.txt 2014-05-02 12:23:55 +0000
4@@ -2,7 +2,7 @@
5
6 project(ubuntu-platform-api)
7
8-set(UBUNTU_PLATFORM_API_VERSION_MAJOR 1)
9+set(UBUNTU_PLATFORM_API_VERSION_MAJOR 2)
10 set(UBUNTU_PLATFORM_API_VERSION_MINOR 0)
11 set(UBUNTU_PLATFORM_API_VERSION_PATCH 0)
12
13@@ -57,37 +57,19 @@
14 ON
15 )
16
17-option(
18- ENABLE_MIRSERVER_IMPLEMENTATION
19- "Enable mirserver based platorm API implementation"
20- OFF
21-)
22-
23-if(ENABLE_MIRSERVER_IMPLEMENTATION)
24- find_package(PkgConfig)
25- pkg_check_modules(MIRSERVER REQUIRED mirserver)
26-endif(ENABLE_MIRSERVER_IMPLEMENTATION)
27-
28-option(
29- ENABLE_MIRCLIENT_IMPLEMENTATION
30- "Enable mirclient based platform API implementation"
31- OFF
32-)
33-
34-if(ENABLE_MIRCLIENT_IMPLEMENTATION)
35- find_package(PkgConfig)
36- pkg_check_modules(MIRCLIENT REQUIRED mirclient)
37-
38- find_package(Protobuf REQUIRED)
39- if(PROTOBUF_PROTOC_EXECUTABLE STREQUAL "PROTOBUF_PROTOC_EXECUTABLE-NOTFOUND")
40- message(SEND_ERROR "protoc executable not found! Missing protobuf-compiler package?")
41- endif()
42-endif(ENABLE_MIRCLIENT_IMPLEMENTATION)
43-
44-if(ENABLE_MIRCLIENT_IMPLEMENTATION OR ENABLE_MIRSERVER_IMPLEMENTATION)
45- pkg_check_modules(MIRCOMMON REQUIRED mircommon)
46+find_package(PkgConfig)
47+pkg_check_modules(MIRSERVER REQUIRED mirserver)
48+
49+find_package(PkgConfig)
50+pkg_check_modules(MIRCLIENT REQUIRED mirclient)
51+
52+find_package(Protobuf REQUIRED)
53+if(PROTOBUF_PROTOC_EXECUTABLE STREQUAL "PROTOBUF_PROTOC_EXECUTABLE-NOTFOUND")
54+ message(SEND_ERROR "protoc executable not found! Missing protobuf-compiler package?")
55 endif()
56
57+pkg_check_modules(MIRCOMMON REQUIRED mircommon)
58+
59 # Try to find hybris, and disable hybris from build if not found
60 find_library(Hybris
61 NAMES hybris-common
62
63=== modified file 'android/default/default_ubuntu_application_sensor.cpp'
64--- android/default/default_ubuntu_application_sensor.cpp 2013-06-28 20:13:22 +0000
65+++ android/default/default_ubuntu_application_sensor.cpp 2014-05-02 12:23:55 +0000
66@@ -199,40 +199,49 @@
67 return toHz(s->min_delay());
68 }
69
70-float
71+UStatus
72 ua_sensors_proximity_get_min_value(
73- UASensorsProximity* sensor)
74+ UASensorsProximity* sensor,
75+ float* value)
76 {
77- if (sensor == NULL)
78- return -1;
79-
80+ if (sensor == NULL || value == NULL)
81+ return U_STATUS_ERROR;
82+
83 ALOGI("%s():%d", __PRETTY_FUNCTION__, __LINE__);
84 auto s = static_cast<ubuntu::application::sensors::Sensor*>(sensor);
85- return s->min_value();
86+ *value = s->min_value();
87+
88+ return U_STATUS_SUCCESS;
89 }
90
91-float
92+UStatus
93 ua_sensors_proximity_get_max_value(
94- UASensorsProximity* sensor)
95+ UASensorsProximity* sensor,
96+ float* value)
97 {
98- if (sensor == NULL)
99- return -1;
100+ if (sensor == NULL || value == NULL)
101+ return U_STATUS_ERROR;
102
103 ALOGI("%s():%d", __PRETTY_FUNCTION__, __LINE__);
104 auto s = static_cast<ubuntu::application::sensors::Sensor*>(sensor);
105- return s->max_value();
106+ *value = s->max_value();
107+
108+ return U_STATUS_SUCCESS;
109 }
110
111-float
112+UStatus
113 ua_sensors_proximity_get_resolution(
114- UASensorsProximity* sensor)
115+ UASensorsProximity* sensor,
116+ float* value)
117 {
118- if (sensor == NULL)
119- return -1;
120+ if (sensor == NULL || value == NULL)
121+ return U_STATUS_ERROR;
122
123 ALOGI("%s():%d", __PRETTY_FUNCTION__, __LINE__);
124 auto s = static_cast<ubuntu::application::sensors::Sensor*>(sensor);
125- return s->resolution();
126+ *value = s->resolution();
127+
128+ return U_STATUS_SUCCESS;
129 }
130
131 void
132@@ -334,40 +343,49 @@
133 return toHz(s->min_delay());
134 }
135
136-float
137+UStatus
138 ua_sensors_light_get_min_value(
139- UASensorsLight* sensor)
140+ UASensorsLight* sensor,
141+ float* value)
142 {
143- if (sensor == NULL)
144- return -1;
145+ if (sensor == NULL || value == NULL)
146+ return U_STATUS_ERROR;
147
148 ALOGI("%s():%d", __PRETTY_FUNCTION__, __LINE__);
149 auto s = static_cast<ubuntu::application::sensors::Sensor*>(sensor);
150- return s->min_value();
151+ *value = s->min_value();
152+
153+ return U_STATUS_SUCCESS;
154 }
155
156-float
157+UStatus
158 ua_sensors_light_get_max_value(
159- UASensorsLight* sensor)
160+ UASensorsLight* sensor,
161+ float* value)
162 {
163- if (sensor == NULL)
164- return -1;
165+ if (sensor == NULL || value == NULL)
166+ return U_STATUS_ERROR;
167
168 ALOGI("%s():%d", __PRETTY_FUNCTION__, __LINE__);
169 auto s = static_cast<ubuntu::application::sensors::Sensor*>(sensor);
170- return s->max_value();
171+ *value = s->max_value();
172+
173+ return U_STATUS_SUCCESS;
174 }
175
176-float
177+UStatus
178 ua_sensors_light_get_resolution(
179- UASensorsLight* sensor)
180+ UASensorsLight* sensor,
181+ float* value)
182 {
183- if (sensor == NULL)
184- return -1;
185+ if (sensor == NULL || value == NULL)
186+ return U_STATUS_ERROR;
187
188 ALOGI("%s():%d", __PRETTY_FUNCTION__, __LINE__);
189 auto s = static_cast<ubuntu::application::sensors::Sensor*>(sensor);
190- return s->resolution();
191+ *value = s->resolution();
192+
193+ return U_STATUS_SUCCESS;
194 }
195
196 void
197@@ -400,12 +418,18 @@
198 return ev->value->get_timestamp();
199 }
200
201-float
202+UStatus
203 uas_light_event_get_light(
204- UASLightEvent* event)
205+ UASLightEvent* event,
206+ float* value)
207 {
208+ if (event == NULL || value == NULL)
209+ return U_STATUS_ERROR;
210+
211 auto ev = static_cast<Holder<ubuntu::application::sensors::LightEvent::Ptr>*>(event);
212- return ev->value->get_light();
213+ *value = ev->value->get_light();
214+
215+ return U_STATUS_SUCCESS;
216 }
217
218 /*
219@@ -464,40 +488,49 @@
220 return toHz(s->min_delay());
221 }
222
223-float
224+UStatus
225 ua_sensors_accelerometer_get_min_value(
226- UASensorsAccelerometer* sensor)
227+ UASensorsAccelerometer* sensor,
228+ float* value)
229 {
230- if (sensor == NULL)
231- return -1;
232+ if (sensor == NULL || value == NULL)
233+ return U_STATUS_ERROR;
234
235 ALOGI("%s():%d", __PRETTY_FUNCTION__, __LINE__);
236 auto s = static_cast<ubuntu::application::sensors::Sensor*>(sensor);
237- return s->min_value();
238+ *value = s->min_value();
239+
240+ return U_STATUS_SUCCESS;
241 }
242
243-float
244+UStatus
245 ua_sensors_accelerometer_get_max_value(
246- UASensorsAccelerometer* sensor)
247+ UASensorsAccelerometer* sensor,
248+ float* value)
249 {
250- if (sensor == NULL)
251- return -1;
252+ if (sensor == NULL || value == NULL)
253+ return U_STATUS_ERROR;
254
255 ALOGI("%s():%d", __PRETTY_FUNCTION__, __LINE__);
256 auto s = static_cast<ubuntu::application::sensors::Sensor*>(sensor);
257- return s->max_value();
258+ *value = s->max_value();
259+
260+ return U_STATUS_SUCCESS;
261 }
262
263-float
264+UStatus
265 ua_sensors_accelerometer_get_resolution(
266- UASensorsAccelerometer* sensor)
267+ UASensorsAccelerometer* sensor,
268+ float* value)
269 {
270- if (sensor == NULL)
271- return -1;
272+ if (sensor == NULL || value == NULL)
273+ return U_STATUS_ERROR;
274
275 ALOGI("%s():%d", __PRETTY_FUNCTION__, __LINE__);
276 auto s = static_cast<ubuntu::application::sensors::Sensor*>(sensor);
277- return s->resolution();
278+ *value = s->resolution();
279+
280+ return U_STATUS_SUCCESS;
281 }
282
283 void
284@@ -529,26 +562,44 @@
285 return ev->value->get_timestamp();
286 }
287
288-float
289+UStatus
290 uas_accelerometer_event_get_acceleration_x(
291- UASAccelerometerEvent* event)
292+ UASAccelerometerEvent* event,
293+ float* value)
294 {
295+ if (event == NULL || value == NULL)
296+ return U_STATUS_ERROR;
297+
298 auto ev = static_cast<Holder<ubuntu::application::sensors::AccelerometerEvent::Ptr>*>(event);
299- return ev->value->get_x();
300+ *value = ev->value->get_x();
301+
302+ return U_STATUS_SUCCESS;
303 }
304
305-float
306+UStatus
307 uas_accelerometer_event_get_acceleration_y(
308- UASAccelerometerEvent* event)
309+ UASAccelerometerEvent* event,
310+ float* value)
311 {
312+ if (event == NULL || value == NULL)
313+ return U_STATUS_ERROR;
314+
315 auto ev = static_cast<Holder<ubuntu::application::sensors::AccelerometerEvent::Ptr>*>(event);
316- return ev->value->get_y();
317+ *value = ev->value->get_y();
318+
319+ return U_STATUS_SUCCESS;
320 }
321
322-float
323+UStatus
324 uas_accelerometer_event_get_acceleration_z(
325- UASAccelerometerEvent* event)
326+ UASAccelerometerEvent* event,
327+ float* value)
328 {
329+ if (event == NULL || value == NULL)
330+ return U_STATUS_ERROR;
331+
332 auto ev = static_cast<Holder<ubuntu::application::sensors::AccelerometerEvent::Ptr>*>(event);
333- return ev->value->get_z();
334+ *value = ev->value->get_z();
335+
336+ return U_STATUS_SUCCESS;
337 }
338
339=== modified file 'android/hybris/Android.mk'
340--- android/hybris/Android.mk 2014-01-22 05:28:18 +0000
341+++ android/hybris/Android.mk 2014-05-02 12:23:55 +0000
342@@ -25,6 +25,7 @@
343 ubuntu_application_api_for_hybris.cpp \
344 ubuntu_application_gps_for_hybris.cpp \
345 ubuntu_application_sensors_for_hybris.cpp \
346+ ubuntu_hardware_alarms_for_hybris.cpp \
347 ../default/default_ubuntu_application_sensor.cpp \
348 ../default/default_ubuntu_application_ui.cpp \
349 ../default/default_ubuntu_application.cpp \
350@@ -65,8 +66,6 @@
351 LOCAL_SHARED_LIBRARIES := \
352 libandroidfw \
353 libutils \
354- libEGL \
355- libGLESv2 \
356 libubuntu_application_api
357
358 include $(BUILD_EXECUTABLE)
359@@ -211,6 +210,29 @@
360
361 include $(CLEAR_VARS)
362
363+LOCAL_CFLAGS += -std=gnu++0x
364+
365+LOCAL_C_INCLUDES := \
366+ $(UPAPI_PATH)/include \
367+ $(UPAPI_PATH)/android/include
368+
369+LOCAL_SRC_FILES:= \
370+ test_alarms_api.cpp \
371+
372+LOCAL_MODULE:= direct_ubuntu_hardware_alarm_api_test
373+LOCAL_MODULE_TAGS := optional
374+
375+LOCAL_SHARED_LIBRARIES := \
376+ libandroidfw \
377+ libutils \
378+ libEGL \
379+ libGLESv2 \
380+ libubuntu_application_api
381+
382+include $(BUILD_EXECUTABLE)
383+
384+include $(CLEAR_VARS)
385+
386 LOCAL_CFLAGS += \
387 -DANDROID_VERSION_MAJOR=$(ANDROID_VERSION_MAJOR) \
388 -DANDROID_VERSION_MINOR=$(ANDROID_VERSION_MINOR) \
389
390=== added file 'android/hybris/test_alarms_api.cpp'
391--- android/hybris/test_alarms_api.cpp 1970-01-01 00:00:00 +0000
392+++ android/hybris/test_alarms_api.cpp 2014-05-02 12:23:55 +0000
393@@ -0,0 +1,62 @@
394+/*
395+ * Copyright © 2013 Canonical Ltd.
396+ *
397+ * This program is free software: you can redistribute it and/or modify
398+ * it under the terms of the GNU General Public License version 3 as
399+ * published by the Free Software Foundation.
400+ *
401+ * This program is distributed in the hope that it will be useful,
402+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
403+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
404+ * GNU General Public License for more details.
405+ *
406+ * You should have received a copy of the GNU General Public License
407+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
408+ *
409+ * Authored by: Thomas Voß <thomas.voss@canonicalcom>
410+ */
411+
412+#include <ubuntu/hardware/alarm.h>
413+
414+#include <cstdio>
415+#include <ctime>
416+
417+int main(int argc, char** argv)
418+{
419+ UHardwareAlarm alarm = u_hardware_alarm_create();
420+
421+ if (!alarm)
422+ {
423+ printf("Error creating handle to hardware alarms.\n");
424+ return 1;
425+ }
426+
427+ // Alarm in two seconds.
428+ timespec ts { 2, 0 };
429+
430+
431+ UStatus rc = u_hardware_alarm_set_relative_to_with_behavior(
432+ alarm,
433+ U_HARDWARE_ALARM_TIME_REFERENCE_NOW,
434+ U_HARDWARE_ALARM_SLEEP_BEHAVIOR_WAKEUP_DEVICE,
435+ &ts);
436+
437+ if (rc != U_STATUS_SUCCESS)
438+ {
439+ printf("Problem setting hardware alarm.\n");
440+ return 1;
441+ }
442+
443+ UHardwareAlarmWaitResult wait_result;
444+ rc = u_hardware_alarm_wait_for_next_alarm(alarm, &wait_result);
445+
446+ if (rc != U_STATUS_SUCCESS)
447+ {
448+ printf("Problem waiting for hardware alarm to go off.\n");
449+ return 1;
450+ }
451+
452+ printf("Successfully created and waited for a hw alarm.\n");
453+
454+ return 0;
455+}
456
457=== modified file 'android/hybris/test_sensors_c_api.cpp'
458--- android/hybris/test_sensors_c_api.cpp 2013-05-30 02:03:42 +0000
459+++ android/hybris/test_sensors_c_api.cpp 2014-05-02 12:23:55 +0000
460@@ -27,10 +27,13 @@
461 void on_new_accelerometer_event(UASAccelerometerEvent* event, void* context)
462 {
463 printf("%s \n", __PRETTY_FUNCTION__);
464+ float x; uas_accelerometer_event_get_acceleration_x(event, &x);
465+ float y; uas_accelerometer_event_get_acceleration_x(event, &y);
466+ float z; uas_accelerometer_event_get_acceleration_x(event, &z);
467 printf("\ttime: %llu\n", uas_accelerometer_event_get_timestamp(event));
468- printf("\tx: %f\n", uas_accelerometer_event_get_acceleration_x(event));
469- printf("\ty: %f\n", uas_accelerometer_event_get_acceleration_y(event));
470- printf("\tz: %f\n", uas_accelerometer_event_get_acceleration_z(event));
471+ printf("\tx: %f\n", x);
472+ printf("\ty: %f\n", y);
473+ printf("\tz: %f\n", z);
474 }
475
476 void on_new_proximity_event(UASProximityEvent* event, void* context)
477@@ -57,7 +60,8 @@
478 {
479 printf("%s \n", __PRETTY_FUNCTION__);
480 printf("\ttime: %llu\n", uas_light_event_get_timestamp(event));
481- printf("\tlight: %f\n", uas_light_event_get_light(event));
482+ float light; uas_light_event_get_light(event, &light);
483+ printf("\tlight: %f\n", light);
484 }
485
486 int main(int argc, char** argv)
487
488=== added file 'android/hybris/ubuntu_hardware_alarms_for_hybris.cpp'
489--- android/hybris/ubuntu_hardware_alarms_for_hybris.cpp 1970-01-01 00:00:00 +0000
490+++ android/hybris/ubuntu_hardware_alarms_for_hybris.cpp 2014-05-02 12:23:55 +0000
491@@ -0,0 +1,197 @@
492+/*
493+ * Copyright © 2013 Canonical Ltd.
494+ *
495+ * This program is free software: you can redistribute it and/or modify
496+ * it under the terms of the GNU Lesser General Public License version 3 as
497+ * published by the Free Software Foundation.
498+ *
499+ * This program is distributed in the hope that it will be useful,
500+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
501+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
502+ * GNU Lesser General Public License for more details.
503+ *
504+ * You should have received a copy of the GNU Lesser General Public License
505+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
506+ *
507+ * Authored by: Thomas Voß <thomas.voss@canonical.com>
508+ */
509+
510+#include <ubuntu/hardware/alarm.h>
511+
512+#include <cstdio>
513+#include <cstdlib>
514+#include <string.h>
515+
516+#include <errno.h>
517+#include <fcntl.h>
518+
519+#include <linux/ioctl.h>
520+#include <linux/android_alarm.h>
521+
522+#include <utils/Log.h>
523+
524+class UbuntuHardwareAlarm
525+{
526+ public:
527+ static UbuntuHardwareAlarm& instance()
528+ {
529+ static UbuntuHardwareAlarm ha;
530+ return ha;
531+ }
532+
533+ int wait_for()
534+ {
535+ int result{-1};
536+
537+ do
538+ {
539+ result = ::ioctl(fd, ANDROID_ALARM_WAIT);
540+ } while (result < 0 && errno == EINTR);
541+
542+ if (result < 0)
543+ ALOGE("Waiting for hw alarm failed with: %s", strerror(errno));
544+
545+ return result;
546+ }
547+
548+ bool set(UHardwareAlarmTimeReference time_reference,
549+ UHardwareAlarmSleepBehavior behavior,
550+ const struct timespec *ts)
551+ {
552+ int type = 0;
553+
554+ if (time_reference == U_HARDWARE_ALARM_TIME_REFERENCE_NOW)
555+ switch(behavior)
556+ {
557+ case U_HARDWARE_ALARM_SLEEP_BEHAVIOR_WAKEUP_DEVICE:
558+ type = ANDROID_ALARM_ELAPSED_REALTIME_WAKEUP_MASK;
559+ break;
560+ case U_HARDWARE_ALARM_SLEEP_BEHAVIOR_KEEP_DEVICE_ASLEEP:
561+ type = ANDROID_ALARM_ELAPSED_REALTIME_MASK;
562+ break;
563+ }
564+ else if (time_reference == U_HARDWARE_ALARM_TIME_REFERENCE_BOOT)
565+ switch(behavior)
566+ {
567+ case U_HARDWARE_ALARM_SLEEP_BEHAVIOR_WAKEUP_DEVICE:
568+ type = ANDROID_ALARM_RTC_WAKEUP_MASK;
569+ break;
570+ case U_HARDWARE_ALARM_SLEEP_BEHAVIOR_KEEP_DEVICE_ASLEEP:
571+ type = ANDROID_ALARM_RTC_MASK;
572+ break;
573+ }
574+
575+ int result = ::ioctl(fd, ANDROID_ALARM_SET(type), ts);
576+
577+ if (result < 0)
578+ ALOGE("Unable to set alarm: %s", strerror(errno));
579+
580+ return not (result < 0);
581+ }
582+
583+ bool is_valid() const
584+ {
585+ return valid;
586+ }
587+
588+ private:
589+ UbuntuHardwareAlarm() : fd(open("/dev/alarm", O_RDWR)),
590+ valid(true)
591+ {
592+ if (fd == -1)
593+ {
594+ ALOGE("Could not open /dev/alarm: %s", strerror(errno));
595+ valid = false;
596+ }
597+ }
598+
599+ ~UbuntuHardwareAlarm()
600+ {
601+ // No need to check if fd is valid here.
602+ // Ctor would have thrown if fd was invalid.
603+ ::close(fd);
604+ }
605+
606+ int fd;
607+ bool valid;
608+};
609+
610+UHardwareAlarm
611+u_hardware_alarm_create()
612+{
613+ auto result = &UbuntuHardwareAlarm::instance();
614+
615+ if (result)
616+ if (result->is_valid())
617+ return result;
618+
619+ return NULL;
620+}
621+
622+void
623+u_hardware_alarm_ref(
624+ UHardwareAlarm alarm)
625+{
626+ // Considering a singleton pattern here, just voiding the argument.
627+ (void) alarm;
628+}
629+
630+void
631+u_hardware_alarm_unref(
632+ UHardwareAlarm alarm)
633+{
634+ // Considering a singleton pattern here, just voiding the argument.
635+ (void) alarm;
636+}
637+
638+UStatus
639+u_hardware_alarm_set_timezone(
640+ UHardwareAlarm alarm,
641+ const struct timezone *tz)
642+{
643+ int result = settimeofday(NULL, tz);
644+
645+ if (result < 0)
646+ return U_STATUS_ERROR;
647+
648+ return U_STATUS_SUCCESS;
649+}
650+
651+UStatus
652+u_hardware_alarm_set_relative_to_with_behavior(
653+ UHardwareAlarm alarm,
654+ UHardwareAlarmTimeReference time_reference,
655+ UHardwareAlarmSleepBehavior behavior,
656+ const struct timespec *ts)
657+{
658+ return alarm->set(time_reference, behavior, ts) ?
659+ U_STATUS_SUCCESS :
660+ U_STATUS_ERROR;
661+
662+}
663+
664+UStatus
665+u_hardware_alarm_wait_for_next_alarm(
666+ UHardwareAlarm alarm,
667+ UHardwareAlarmWaitResult *result)
668+{
669+ int rc = alarm->wait_for();
670+
671+ if (rc < 0)
672+ return U_STATUS_ERROR;
673+
674+ if ((rc & ANDROID_ALARM_RTC_MASK) ||
675+ (rc & ANDROID_ALARM_RTC_WAKEUP_MASK))
676+ result->reference = U_HARDWARE_ALARM_TIME_REFERENCE_BOOT;
677+ else if ((rc & ANDROID_ALARM_ELAPSED_REALTIME_MASK) ||
678+ (rc & ANDROID_ALARM_ELAPSED_REALTIME_WAKEUP_MASK))
679+ result->reference = U_HARDWARE_ALARM_TIME_REFERENCE_NOW;
680+
681+ if ((rc & ANDROID_ALARM_RTC_WAKEUP_MASK) ||
682+ (rc & ANDROID_ALARM_ELAPSED_REALTIME_WAKEUP_MASK))
683+ result->sleep_behavior = U_HARDWARE_ALARM_SLEEP_BEHAVIOR_WAKEUP_DEVICE;
684+ else
685+ result->sleep_behavior = U_HARDWARE_ALARM_SLEEP_BEHAVIOR_KEEP_DEVICE_ASLEEP;
686+
687+ return U_STATUS_SUCCESS;
688+}
689
690=== modified file 'data/CMakeLists.txt'
691--- data/CMakeLists.txt 2013-06-13 12:04:14 +0000
692+++ data/CMakeLists.txt 2014-05-02 12:23:55 +0000
693@@ -2,7 +2,11 @@
694 ubuntu-platform-api.pc.in ubuntu-platform-api.pc @ONLY
695 )
696
697+configure_file(
698+ ubuntu-platform-hardware-api.pc.in ubuntu-platform-hardware-api.pc @ONLY
699+)
700+
701 install(
702- FILES ${CMAKE_CURRENT_BINARY_DIR}/ubuntu-platform-api.pc
703+ FILES ${CMAKE_CURRENT_BINARY_DIR}/ubuntu-platform-api.pc ${CMAKE_CURRENT_BINARY_DIR}/ubuntu-platform-hardware-api.pc
704 DESTINATION lib/${CMAKE_LIBRARY_ARCHITECTURE}/pkgconfig
705-)
706\ No newline at end of file
707+)
708
709=== added file 'data/ubuntu-platform-hardware-api.pc.in'
710--- data/ubuntu-platform-hardware-api.pc.in 1970-01-01 00:00:00 +0000
711+++ data/ubuntu-platform-hardware-api.pc.in 2014-05-02 12:23:55 +0000
712@@ -0,0 +1,10 @@
713+prefix=@CMAKE_INSTALL_PREFIX@
714+exec_prefix=${prefix}
715+libdir=${prefix}/@LIB_INSTALL_DIR@
716+includedir=${exec_prefix}/include
717+
718+Name: ubuntu_platform_hardware_api
719+Description: Ubuntu's platform hardware abstraction layer.
720+Version: @UBUNTU_PLATFORM_API_VERSION_MAJOR@.@UBUNTU_PLATFORM_API_VERSION_MINOR@.@UBUNTU_PLATFORM_API_VERSION_PATCH@
721+Libs: -L${libdir} -lubuntu_platform_hardware_api
722+Cflags: -I${includedir}/ubuntu
723
724=== modified file 'debian/control'
725--- debian/control 2014-04-15 20:23:07 +0000
726+++ debian/control 2014-05-02 12:23:55 +0000
727@@ -7,8 +7,6 @@
728 doxygen,
729 graphviz,
730 libgles2-mesa-dev,
731- gcc-4.7,
732- g++-4.7,
733 libhybris-common-dev,
734 pkg-config,
735 libmirclient-dev (>= 0.1.8),
736@@ -55,7 +53,7 @@
737 should build depend on the libplatform-hardware-api-dev package instead, which
738 will pull this package as well.
739
740-Package: libplatform-api1-dev
741+Package: libplatform-api-dev
742 Section: libdevel
743 Architecture: any
744 Pre-Depends: ${misc:Pre-Depends},
745@@ -63,36 +61,36 @@
746 Depends: ${misc:Depends},
747 libgles2-mesa-dev,
748 libplatform-api-headers (= ${binary:Version}),
749- libubuntu-application-api1 | libplatform-api1,
750- libubuntu-application-api-mirserver1 (= ${binary:Version}),
751- libubuntu-application-api-mirclient1 (= ${binary:Version}),
752+ libubuntu-application-api2,
753 ${misc:Depends},
754 Suggests: libplatform-api1-doc,
755 Description: Platform API for system level capabilities (development)
756 This package provides the development library and headers (via
757 dependency) for the Platform API.
758
759-Package: libubuntu-application-api-mirserver1
760+Package: libubuntu-application-api-touch2
761 Section: libs
762 Pre-Depends: ${misc:Pre-Depends},
763 Multi-Arch: same
764 Architecture: any
765 Depends: ${misc:Depends},
766 ${shlibs:Depends},
767-Description: Implementation of the Platform API for a Mir server
768- This package provides the implementation of the Platform API to
769- provide a server instance of Mir.
770+ libubuntu-application-api2
771+Description: Implementation of the Ubuntu Platform API for Touch
772+ This package provides the implementation of the Ubuntu Platform API
773+ for Ubuntu Touch clients.
774
775-Package: libubuntu-application-api-mirclient1
776+Package: libubuntu-application-api-desktop2
777 Section: libs
778 Pre-Depends: ${misc:Pre-Depends},
779 Multi-Arch: same
780 Architecture: any
781 Depends: ${misc:Depends},
782 ${shlibs:Depends},
783-Description: Implementation of the Platform API for a Mir client
784- This package provides the implementation of the Platform API to
785- allow a client to connect to a Mir server.
786+ libubuntu-application-api2
787+Description: Implementation of the Ubuntu Platform API for a Desktop
788+ This package provides the implementation of the Ubuntu Platform API
789+ for Ubuntu Desktop clients.
790
791 Package: libplatform-hardware-api1-dev
792 Section: libdevel
793@@ -108,11 +106,11 @@
794 This package provides the development library and headers (via
795 dependency) for the hw-access portions of the Platform API.
796
797-Package: libplatform-api1-doc
798+Package: libplatform-api2-doc
799 Section: doc
800 Architecture: all
801 Depends: ${misc:Depends},
802- libplatform-api1-dev,
803+ libplatform-api2-dev,
804 Description: Platform API for system level capabilities (development)
805 This package provides the developer documentation for the Platform API.
806
807@@ -131,7 +129,7 @@
808 The produced library should be used via libhybris, to communicate with the
809 Android userspace, which is where the device drivers live.
810
811-Package: libubuntu-application-api1
812+Package: libubuntu-application-api2
813 Section: libs
814 Architecture: any
815 Replaces: libplatform-api1-hybris (<< 0.18.3)
816@@ -146,7 +144,7 @@
817 The produced library should be used via libhybris, to communicate with the
818 Android userspace, which is where the Ubuntu Application Manager lives.
819
820-Package: libubuntu-application-api-test1
821+Package: libubuntu-application-api-test2
822 Section: libs
823 Architecture: any
824 Pre-Depends: ${misc:Pre-Depends},
825@@ -162,33 +160,14 @@
826 .
827 For now this provides simulated sensors.
828
829-Package: libplatform-api1-hybris-tests
830-Architecture: any
831-Depends: ${misc:Depends},
832- ${shlibs:Depends},
833- libubuntu-application-api1 (= ${binary:Version}),
834-Description: Hybris implementation of the Platform API (tests)
835- This package provides the test cases for the hybris implementation
836- of the Platform API.
837-
838-Package: libubuntu-platform-api1-dev
839-Section: oldlibs
840-Architecture: all
841-Depends: ${misc:Depends},
842- libplatform-api1-dev (= ${binary:Version}),
843-Description: dummy transitional package for libplatform-api1-dev
844- This is dummy transitional package, please use libplatform-api1-dev instead.
845- .
846- This package can be safely removed.
847-
848-Package: libplatform-api1-hybris
849-Section: oldlibs
850-Architecture: all
851-Depends: libubuntu-application-api1,
852- ${misc:Depends},
853-Description: dummy transitional package for libplatform-api1-hybris
854- This is a dummy transitional package, please use libubuntu-application-api1
855- instead.
856+#Package: libplatform-api1-hybris-tests
857+#Architecture: any
858+#Depends: ${misc:Depends},
859+# ${shlibs:Depends},
860+# libubuntu-application-api1 (= ${binary:Version}),
861+#Description: Hybris implementation of the Platform API (tests)
862+# This package provides the test cases for the hybris implementation
863+# of the Platform API.
864
865 Package: libplatform-hardware-api1-hybris
866 Section: oldlibs
867
868=== removed file 'debian/libplatform-api1-dev.install'
869--- debian/libplatform-api1-dev.install 2013-08-23 13:53:42 +0000
870+++ debian/libplatform-api1-dev.install 1970-01-01 00:00:00 +0000
871@@ -1,4 +0,0 @@
872-usr/lib/*/libubuntu_application_api.so
873-usr/lib/*/libubuntu_application_api_mirclient.so
874-usr/lib/*/libubuntu_application_api_mirserver.so
875-usr/lib/*/pkgconfig/ubuntu-platform-api.pc
876
877=== removed file 'debian/libplatform-api1-doc.doc-base'
878--- debian/libplatform-api1-doc.doc-base 2013-07-05 16:34:47 +0000
879+++ debian/libplatform-api1-doc.doc-base 1970-01-01 00:00:00 +0000
880@@ -1,8 +0,0 @@
881-Document: ubuntu-platform-api
882-Title: Ubuntu Platform API Reference Documentation
883-Author: Thomas Voß
884-Abstract: This is the reference documentation for the Ubuntu Platform API
885-Section: Debian
886-Format: HTML
887-Index: /usr/share/doc/ubuntu-platform-api/html/index.html
888-Files: /usr/share/doc/ubuntu-platform-api/html/*.html
889
890=== removed file 'debian/libplatform-api1-doc.install'
891--- debian/libplatform-api1-doc.install 2013-07-05 13:50:50 +0000
892+++ debian/libplatform-api1-doc.install 1970-01-01 00:00:00 +0000
893@@ -1,1 +0,0 @@
894-usr/share/doc/ubuntu-platform-api
895\ No newline at end of file
896
897=== removed file 'debian/libplatform-api1-hybris-tests.install'
898--- debian/libplatform-api1-hybris-tests.install 2013-08-17 05:22:31 +0000
899+++ debian/libplatform-api1-hybris-tests.install 1970-01-01 00:00:00 +0000
900@@ -1,6 +0,0 @@
901-usr/bin/test_android_gps_api
902-usr/bin/test_android_sensors_api
903-usr/bin/test_android_ubuntu_app_api
904-usr/bin/test_android_ubuntu_app_api_multiple_surfaces
905-usr/bin/test_android_ubuntu_session_api
906-usr/bin/test_ubuntu_app_api_location_service
907\ No newline at end of file
908
909=== modified file 'debian/libplatform-hardware-api1-dev.install'
910--- debian/libplatform-hardware-api1-dev.install 2013-07-08 10:39:36 +0000
911+++ debian/libplatform-hardware-api1-dev.install 2014-05-02 12:23:55 +0000
912@@ -1,2 +1,2 @@
913 usr/lib/*/libubuntu_platform_hardware_api.so
914-
915+usr/lib/*/pkgconfig/ubuntu-platform-hardware-api.pc
916
917=== removed file 'debian/libubuntu-application-api-mirclient1.install'
918--- debian/libubuntu-application-api-mirclient1.install 2013-08-08 17:41:19 +0000
919+++ debian/libubuntu-application-api-mirclient1.install 1970-01-01 00:00:00 +0000
920@@ -1,1 +0,0 @@
921-usr/lib/*/libubuntu_application_api_mirclient.so.*
922
923=== removed file 'debian/libubuntu-application-api-mirclient1.symbols'
924--- debian/libubuntu-application-api-mirclient1.symbols 2013-09-23 05:39:42 +0000
925+++ debian/libubuntu-application-api-mirclient1.symbols 1970-01-01 00:00:00 +0000
926@@ -1,126 +0,0 @@
927-libubuntu_application_api_mirclient.so.1 libubuntu-application-api-mirclient1 #MINVER#
928- u_application_description_destroy@Base 0.18.3+13.10.20130813
929- u_application_description_get_application_id@Base 0.18.3+13.10.20130813
930- u_application_description_get_application_lifecycle_delegate@Base 0.18.3+13.10.20130813
931- u_application_description_new@Base 0.18.3+13.10.20130813
932- u_application_description_set_application_id@Base 0.18.3+13.10.20130813
933- u_application_description_set_application_lifecycle_delegate@Base 0.18.3+13.10.20130813
934- u_application_id_compare@Base 0.18.3+13.10.20130813
935- u_application_id_destroy@Base 0.18.3+13.10.20130813
936- u_application_id_new_from_stringn@Base 0.18.3+13.10.20130813
937- u_application_instance_destroy@Base 0.18.3+13.10.20130813
938- u_application_instance_new_from_description_with_options@Base 0.18.3+13.10.20130813
939- u_application_instance_ref@Base 0.18.3+13.10.20130813
940- u_application_instance_run@Base 0.18.3+13.10.20130813
941- u_application_instance_unref@Base 0.18.3+13.10.20130813
942- u_application_lifecycle_delegate_destroy@Base 0.18.3+13.10.20130813
943- u_application_lifecycle_delegate_get_application_about_to_stop_cb@Base 0.18.3+13.10.20130813
944- u_application_lifecycle_delegate_get_application_resumed_cb@Base 0.18.3+13.10.20130813
945- u_application_lifecycle_delegate_get_context@Base 0.18.3+13.10.20130813
946- u_application_lifecycle_delegate_new@Base 0.18.3+13.10.20130813
947- u_application_lifecycle_delegate_ref@Base 0.18.3+13.10.20130813
948- u_application_lifecycle_delegate_set_application_about_to_stop_cb@Base 0.18.3+13.10.20130813
949- u_application_lifecycle_delegate_set_application_resumed_cb@Base 0.18.3+13.10.20130813
950- u_application_lifecycle_delegate_set_context@Base 0.18.3+13.10.20130813
951- u_application_lifecycle_delegate_unref@Base 0.18.3+13.10.20130813
952- u_application_options_destroy@Base 0.18.3+13.10.20130813
953- u_application_options_get_form_factor@Base 0.18.3+13.10.20130813
954- u_application_options_get_operation_mode@Base 0.18.3+13.10.20130813
955- u_application_options_get_stage@Base 0.18.3+13.10.20130813
956- u_application_options_new_from_cmd_line@Base 0.18.3+13.10.20130813
957- ua_sensors_accelerometer_disable@Base 0.18.3+13.10.20130813
958- ua_sensors_accelerometer_enable@Base 0.18.3+13.10.20130813
959- ua_sensors_accelerometer_get_max_value@Base 0.18.3+13.10.20130813
960- ua_sensors_accelerometer_get_min_delay@Base 0.18.3+13.10.20130813
961- ua_sensors_accelerometer_get_min_value@Base 0.18.3+13.10.20130813
962- ua_sensors_accelerometer_get_resolution@Base 0.18.3+13.10.20130813
963- ua_sensors_accelerometer_new@Base 0.18.3+13.10.20130813
964- ua_sensors_accelerometer_set_reading_cb@Base 0.18.3+13.10.20130813
965- ua_sensors_light_disable@Base 0.18.3+13.10.20130813
966- ua_sensors_light_enable@Base 0.18.3+13.10.20130813
967- ua_sensors_light_get_max_value@Base 0.18.3+13.10.20130813
968- ua_sensors_light_get_min_delay@Base 0.18.3+13.10.20130813
969- ua_sensors_light_get_min_value@Base 0.18.3+13.10.20130813
970- ua_sensors_light_get_resolution@Base 0.18.3+13.10.20130813
971- ua_sensors_light_new@Base 0.18.3+13.10.20130813
972- ua_sensors_light_set_reading_cb@Base 0.18.3+13.10.20130813
973- ua_sensors_proximity_disable@Base 0.18.3+13.10.20130813
974- ua_sensors_proximity_enable@Base 0.18.3+13.10.20130813
975- ua_sensors_proximity_get_max_value@Base 0.18.3+13.10.20130813
976- ua_sensors_proximity_get_min_delay@Base 0.18.3+13.10.20130813
977- ua_sensors_proximity_get_min_value@Base 0.18.3+13.10.20130813
978- ua_sensors_proximity_get_resolution@Base 0.18.3+13.10.20130813
979- ua_sensors_proximity_new@Base 0.18.3+13.10.20130813
980- ua_sensors_proximity_set_reading_cb@Base 0.18.3+13.10.20130813
981- ua_ui_display_destroy@Base 0.18.3+13.10.20130813
982- ua_ui_display_get_native_type@Base 0.18.3+13.10.20130813
983- ua_ui_display_new_with_index@Base 0.18.3+13.10.20130813
984- ua_ui_display_query_horizontal_res@Base 0.18.3+13.10.20130813
985- ua_ui_display_query_vertical_res@Base 0.18.3+13.10.20130813
986- ua_ui_get_clipboard_content@Base 0.18.3+13.10.20130813
987- ua_ui_session_new_with_properties@Base 0.18.3+13.10.20130813
988- ua_ui_session_properties_new@Base 0.18.3+13.10.20130813
989- ua_ui_session_properties_set_remote_pid@Base 0.18.3+13.10.20130813
990- ua_ui_session_properties_set_type@Base 0.18.3+13.10.20130813
991- ua_ui_set_clipboard_content@Base 0.18.3+13.10.20130813
992- ua_ui_window_destroy@Base 0.18.3+13.10.20130813
993- ua_ui_window_get_native_type@Base 0.18.3+13.10.20130813
994- ua_ui_window_hide@Base 0.18.3+13.10.20130813
995- ua_ui_window_move@Base 0.18.3+13.10.20130813
996- ua_ui_window_new_for_application_with_properties@Base 0.18.3+13.10.20130813
997- ua_ui_window_properties_destroy@Base 0.18.3+13.10.20130813
998- ua_ui_window_properties_get_title@Base 0.18.3+13.10.20130813
999- ua_ui_window_properties_new_for_normal_window@Base 0.18.3+13.10.20130813
1000- ua_ui_window_properties_set_input_cb_and_ctx@Base 0.18.3+13.10.20130813
1001- ua_ui_window_properties_set_role@Base 0.18.3+13.10.20130813
1002- ua_ui_window_properties_set_titlen@Base 0.18.3+13.10.20130813
1003- ua_ui_window_request_fullscreen@Base 0.18.3+13.10.20130813
1004- ua_ui_window_resize@Base 0.18.3+13.10.20130813
1005- ua_ui_window_show@Base 0.18.3+13.10.20130813
1006- uas_accelerometer_event_get_acceleration_x@Base 0.18.3+13.10.20130813
1007- uas_accelerometer_event_get_acceleration_y@Base 0.18.3+13.10.20130813
1008- uas_accelerometer_event_get_acceleration_z@Base 0.18.3+13.10.20130813
1009- uas_accelerometer_event_get_timestamp@Base 0.18.3+13.10.20130813
1010- uas_light_event_get_light@Base 0.18.3+13.10.20130813
1011- uas_light_event_get_timestamp@Base 0.18.3+13.10.20130813
1012- uas_proximity_event_get_distance@Base 0.18.3+13.10.20130813
1013- uas_proximity_event_get_timestamp@Base 0.18.3+13.10.20130813
1014- ua_location_heading_update_get_heading_in_degree@Base 0.19+13.10.20130919.3
1015- ua_location_heading_update_get_timestamp@Base 0.19+13.10.20130919.3
1016- ua_location_heading_update_ref@Base 0.19+13.10.20130919.3
1017- ua_location_heading_update_unref@Base 0.19+13.10.20130919.3
1018- ua_location_position_update_get_altitude_in_meter@Base 0.19+13.10.20130919.3
1019- ua_location_position_update_get_latitude_in_degree@Base 0.19+13.10.20130919.3
1020- ua_location_position_update_get_longitude_in_degree@Base 0.19+13.10.20130919.3
1021- ua_location_position_update_get_timestamp@Base 0.19+13.10.20130919.3
1022- ua_location_position_update_has_altitude@Base 0.19+13.10.20130919.3
1023- ua_location_position_update_ref@Base 0.19+13.10.20130919.3
1024- ua_location_position_update_unref@Base 0.19+13.10.20130919.3
1025- ua_location_service_controller_disable_gps@Base 0.19+13.10.20130919.3
1026- ua_location_service_controller_disable_service@Base 0.19+13.10.20130919.3
1027- ua_location_service_controller_enable_gps@Base 0.19+13.10.20130919.3
1028- ua_location_service_controller_enable_service@Base 0.19+13.10.20130919.3
1029- ua_location_service_controller_query_status@Base 0.19+13.10.20130919.3
1030- ua_location_service_controller_ref@Base 0.19+13.10.20130919.3
1031- ua_location_service_controller_set_status_changed_handler@Base 0.19+13.10.20130919.3
1032- ua_location_service_controller_unref@Base 0.19+13.10.20130919.3
1033- ua_location_service_create_controller@Base 0.19+13.10.20130919.3
1034- ua_location_service_create_session_for_high_accuracy@Base 0.19+13.10.20130919.3
1035- ua_location_service_create_session_for_low_accuracy@Base 0.19+13.10.20130919.3
1036- ua_location_service_session_ref@Base 0.19+13.10.20130919.3
1037- ua_location_service_session_set_heading_updates_handler@Base 0.19+13.10.20130919.3
1038- ua_location_service_session_set_position_updates_handler@Base 0.19+13.10.20130919.3
1039- ua_location_service_session_set_velocity_updates_handler@Base 0.19+13.10.20130919.3
1040- ua_location_service_session_start_heading_updates@Base 0.19+13.10.20130919.3
1041- ua_location_service_session_start_position_updates@Base 0.19+13.10.20130919.3
1042- ua_location_service_session_start_velocity_updates@Base 0.19+13.10.20130919.3
1043- ua_location_service_session_stop_heading_updates@Base 0.19+13.10.20130919.3
1044- ua_location_service_session_stop_position_updates@Base 0.19+13.10.20130919.3
1045- ua_location_service_session_stop_velocity_updates@Base 0.19+13.10.20130919.3
1046- ua_location_service_session_unref@Base 0.19+13.10.20130919.3
1047- ua_location_velocity_update_get_timestamp@Base 0.19+13.10.20130919.3
1048- ua_location_velocity_update_get_velocity_in_meters_per_second@Base 0.19+13.10.20130919.3
1049- ua_location_velocity_update_ref@Base 0.19+13.10.20130919.3
1050- ua_location_velocity_update_unref@Base 0.19+13.10.20130919.3
1051- ua_url_dispatcher_session@Base 0.19+13.10.20130919.3
1052- ua_url_dispatcher_session_open@Base 0.19+13.10.20130919.3
1053\ No newline at end of file
1054
1055=== removed file 'debian/libubuntu-application-api-mirserver1.install'
1056--- debian/libubuntu-application-api-mirserver1.install 2013-08-08 17:41:19 +0000
1057+++ debian/libubuntu-application-api-mirserver1.install 1970-01-01 00:00:00 +0000
1058@@ -1,1 +0,0 @@
1059-usr/lib/*/libubuntu_application_api_mirserver.so.*
1060
1061=== removed file 'debian/libubuntu-application-api-mirserver1.symbols'
1062--- debian/libubuntu-application-api-mirserver1.symbols 2013-09-23 05:39:42 +0000
1063+++ debian/libubuntu-application-api-mirserver1.symbols 1970-01-01 00:00:00 +0000
1064@@ -1,128 +0,0 @@
1065-libubuntu_application_api_mirserver.so.1 libubuntu-application-api-mirserver1 #MINVER#
1066- u_application_description_destroy@Base 0.18.3+13.10.20130813
1067- u_application_description_get_application_id@Base 0.18.3+13.10.20130813
1068- u_application_description_get_application_lifecycle_delegate@Base 0.18.3+13.10.20130813
1069- u_application_description_new@Base 0.18.3+13.10.20130813
1070- u_application_description_set_application_id@Base 0.18.3+13.10.20130813
1071- u_application_description_set_application_lifecycle_delegate@Base 0.18.3+13.10.20130813
1072- u_application_id_compare@Base 0.18.3+13.10.20130813
1073- u_application_id_destroy@Base 0.18.3+13.10.20130813
1074- u_application_id_new_from_stringn@Base 0.18.3+13.10.20130813
1075- u_application_instance_destroy@Base 0.18.3+13.10.20130813
1076- u_application_instance_new_from_description_with_options@Base 0.18.3+13.10.20130813
1077- u_application_instance_ref@Base 0.18.3+13.10.20130813
1078- u_application_instance_run@Base 0.18.3+13.10.20130813
1079- u_application_instance_unref@Base 0.18.3+13.10.20130813
1080- u_application_lifecycle_delegate_destroy@Base 0.18.3+13.10.20130813
1081- u_application_lifecycle_delegate_get_application_about_to_stop_cb@Base 0.18.3+13.10.20130813
1082- u_application_lifecycle_delegate_get_application_resumed_cb@Base 0.18.3+13.10.20130813
1083- u_application_lifecycle_delegate_get_context@Base 0.18.3+13.10.20130813
1084- u_application_lifecycle_delegate_new@Base 0.18.3+13.10.20130813
1085- u_application_lifecycle_delegate_ref@Base 0.18.3+13.10.20130813
1086- u_application_lifecycle_delegate_set_application_about_to_stop_cb@Base 0.18.3+13.10.20130813
1087- u_application_lifecycle_delegate_set_application_resumed_cb@Base 0.18.3+13.10.20130813
1088- u_application_lifecycle_delegate_set_context@Base 0.18.3+13.10.20130813
1089- u_application_lifecycle_delegate_unref@Base 0.18.3+13.10.20130813
1090- u_application_options_destroy@Base 0.18.3+13.10.20130813
1091- u_application_options_get_form_factor@Base 0.18.3+13.10.20130813
1092- u_application_options_get_operation_mode@Base 0.18.3+13.10.20130813
1093- u_application_options_get_stage@Base 0.18.3+13.10.20130813
1094- u_application_options_new_from_cmd_line@Base 0.18.3+13.10.20130813
1095- ua_sensors_accelerometer_disable@Base 0.18.3+13.10.20130813
1096- ua_sensors_accelerometer_enable@Base 0.18.3+13.10.20130813
1097- ua_sensors_accelerometer_get_max_value@Base 0.18.3+13.10.20130813
1098- ua_sensors_accelerometer_get_min_delay@Base 0.18.3+13.10.20130813
1099- ua_sensors_accelerometer_get_min_value@Base 0.18.3+13.10.20130813
1100- ua_sensors_accelerometer_get_resolution@Base 0.18.3+13.10.20130813
1101- ua_sensors_accelerometer_new@Base 0.18.3+13.10.20130813
1102- ua_sensors_accelerometer_set_reading_cb@Base 0.18.3+13.10.20130813
1103- ua_sensors_light_disable@Base 0.18.3+13.10.20130813
1104- ua_sensors_light_enable@Base 0.18.3+13.10.20130813
1105- ua_sensors_light_get_max_value@Base 0.18.3+13.10.20130813
1106- ua_sensors_light_get_min_delay@Base 0.18.3+13.10.20130813
1107- ua_sensors_light_get_min_value@Base 0.18.3+13.10.20130813
1108- ua_sensors_light_get_resolution@Base 0.18.3+13.10.20130813
1109- ua_sensors_light_new@Base 0.18.3+13.10.20130813
1110- ua_sensors_light_set_reading_cb@Base 0.18.3+13.10.20130813
1111- ua_sensors_proximity_disable@Base 0.18.3+13.10.20130813
1112- ua_sensors_proximity_enable@Base 0.18.3+13.10.20130813
1113- ua_sensors_proximity_get_max_value@Base 0.18.3+13.10.20130813
1114- ua_sensors_proximity_get_min_delay@Base 0.18.3+13.10.20130813
1115- ua_sensors_proximity_get_min_value@Base 0.18.3+13.10.20130813
1116- ua_sensors_proximity_get_resolution@Base 0.18.3+13.10.20130813
1117- ua_sensors_proximity_new@Base 0.18.3+13.10.20130813
1118- ua_sensors_proximity_set_reading_cb@Base 0.18.3+13.10.20130813
1119- ua_ui_display_destroy@Base 0.18.3+13.10.20130813
1120- ua_ui_display_get_native_type@Base 0.18.3+13.10.20130813
1121- ua_ui_display_new_with_index@Base 0.18.3+13.10.20130813
1122- ua_ui_display_query_horizontal_res@Base 0.18.3+13.10.20130813
1123- ua_ui_display_query_vertical_res@Base 0.18.3+13.10.20130813
1124- ua_ui_get_clipboard_content@Base 0.18.3+13.10.20130813
1125- ua_ui_mirserver_finish@Base 0.18.3+13.10.20130823
1126- ua_ui_mirserver_init@Base 0.18.3+13.10.20130823
1127- ua_ui_session_new_with_properties@Base 0.18.3+13.10.20130813
1128- ua_ui_session_properties_new@Base 0.18.3+13.10.20130813
1129- ua_ui_session_properties_set_remote_pid@Base 0.18.3+13.10.20130813
1130- ua_ui_session_properties_set_type@Base 0.18.3+13.10.20130813
1131- ua_ui_set_clipboard_content@Base 0.18.3+13.10.20130813
1132- ua_ui_window_destroy@Base 0.18.3+13.10.20130813
1133- ua_ui_window_get_native_type@Base 0.18.3+13.10.20130813
1134- ua_ui_window_hide@Base 0.18.3+13.10.20130813
1135- ua_ui_window_move@Base 0.18.3+13.10.20130813
1136- ua_ui_window_new_for_application_with_properties@Base 0.18.3+13.10.20130813
1137- ua_ui_window_properties_destroy@Base 0.18.3+13.10.20130813
1138- ua_ui_window_properties_get_title@Base 0.18.3+13.10.20130813
1139- ua_ui_window_properties_new_for_normal_window@Base 0.18.3+13.10.20130813
1140- ua_ui_window_properties_set_input_cb_and_ctx@Base 0.18.3+13.10.20130813
1141- ua_ui_window_properties_set_role@Base 0.18.3+13.10.20130813
1142- ua_ui_window_properties_set_titlen@Base 0.18.3+13.10.20130813
1143- ua_ui_window_request_fullscreen@Base 0.18.3+13.10.20130813
1144- ua_ui_window_resize@Base 0.18.3+13.10.20130813
1145- ua_ui_window_show@Base 0.18.3+13.10.20130813
1146- uas_accelerometer_event_get_acceleration_x@Base 0.18.3+13.10.20130813
1147- uas_accelerometer_event_get_acceleration_y@Base 0.18.3+13.10.20130813
1148- uas_accelerometer_event_get_acceleration_z@Base 0.18.3+13.10.20130813
1149- uas_accelerometer_event_get_timestamp@Base 0.18.3+13.10.20130813
1150- uas_light_event_get_light@Base 0.18.3+13.10.20130813
1151- uas_light_event_get_timestamp@Base 0.18.3+13.10.20130813
1152- uas_proximity_event_get_distance@Base 0.18.3+13.10.20130813
1153- uas_proximity_event_get_timestamp@Base 0.18.3+13.10.20130813
1154- ua_location_heading_update_get_heading_in_degree@Base 0.19+13.10.20130919.3
1155- ua_location_heading_update_get_timestamp@Base 0.19+13.10.20130919.3
1156- ua_location_heading_update_ref@Base 0.19+13.10.20130919.3
1157- ua_location_heading_update_unref@Base 0.19+13.10.20130919.3
1158- ua_location_position_update_get_altitude_in_meter@Base 0.19+13.10.20130919.3
1159- ua_location_position_update_get_latitude_in_degree@Base 0.19+13.10.20130919.3
1160- ua_location_position_update_get_longitude_in_degree@Base 0.19+13.10.20130919.3
1161- ua_location_position_update_get_timestamp@Base 0.19+13.10.20130919.3
1162- ua_location_position_update_has_altitude@Base 0.19+13.10.20130919.3
1163- ua_location_position_update_ref@Base 0.19+13.10.20130919.3
1164- ua_location_position_update_unref@Base 0.19+13.10.20130919.3
1165- ua_location_service_controller_disable_gps@Base 0.19+13.10.20130919.3
1166- ua_location_service_controller_disable_service@Base 0.19+13.10.20130919.3
1167- ua_location_service_controller_enable_gps@Base 0.19+13.10.20130919.3
1168- ua_location_service_controller_enable_service@Base 0.19+13.10.20130919.3
1169- ua_location_service_controller_query_status@Base 0.19+13.10.20130919.3
1170- ua_location_service_controller_ref@Base 0.19+13.10.20130919.3
1171- ua_location_service_controller_set_status_changed_handler@Base 0.19+13.10.20130919.3
1172- ua_location_service_controller_unref@Base 0.19+13.10.20130919.3
1173- ua_location_service_create_controller@Base 0.19+13.10.20130919.3
1174- ua_location_service_create_session_for_high_accuracy@Base 0.19+13.10.20130919.3
1175- ua_location_service_create_session_for_low_accuracy@Base 0.19+13.10.20130919.3
1176- ua_location_service_session_ref@Base 0.19+13.10.20130919.3
1177- ua_location_service_session_set_heading_updates_handler@Base 0.19+13.10.20130919.3
1178- ua_location_service_session_set_position_updates_handler@Base 0.19+13.10.20130919.3
1179- ua_location_service_session_set_velocity_updates_handler@Base 0.19+13.10.20130919.3
1180- ua_location_service_session_start_heading_updates@Base 0.19+13.10.20130919.3
1181- ua_location_service_session_start_position_updates@Base 0.19+13.10.20130919.3
1182- ua_location_service_session_start_velocity_updates@Base 0.19+13.10.20130919.3
1183- ua_location_service_session_stop_heading_updates@Base 0.19+13.10.20130919.3
1184- ua_location_service_session_stop_position_updates@Base 0.19+13.10.20130919.3
1185- ua_location_service_session_stop_velocity_updates@Base 0.19+13.10.20130919.3
1186- ua_location_service_session_unref@Base 0.19+13.10.20130919.3
1187- ua_location_velocity_update_get_timestamp@Base 0.19+13.10.20130919.3
1188- ua_location_velocity_update_get_velocity_in_meters_per_second@Base 0.19+13.10.20130919.3
1189- ua_location_velocity_update_ref@Base 0.19+13.10.20130919.3
1190- ua_location_velocity_update_unref@Base 0.19+13.10.20130919.3
1191- ua_url_dispatcher_session@Base 0.19+13.10.20130919.3
1192- ua_url_dispatcher_session_open@Base 0.19+13.10.20130919.3
1193\ No newline at end of file
1194
1195=== removed file 'debian/libubuntu-application-api-test1.docs'
1196--- debian/libubuntu-application-api-test1.docs 2014-01-08 15:17:41 +0000
1197+++ debian/libubuntu-application-api-test1.docs 1970-01-01 00:00:00 +0000
1198@@ -1,1 +0,0 @@
1199-src/ubuntu/testbackend/README.md
1200
1201=== removed file 'debian/libubuntu-application-api-test1.install'
1202--- debian/libubuntu-application-api-test1.install 2014-01-08 15:17:41 +0000
1203+++ debian/libubuntu-application-api-test1.install 1970-01-01 00:00:00 +0000
1204@@ -1,1 +0,0 @@
1205-usr/lib/*/libubuntu_application_api_test.so.*
1206
1207=== removed file 'debian/libubuntu-application-api1.install'
1208--- debian/libubuntu-application-api1.install 2013-07-16 21:20:58 +0000
1209+++ debian/libubuntu-application-api1.install 1970-01-01 00:00:00 +0000
1210@@ -1,1 +0,0 @@
1211-usr/lib/*/libubuntu_application_api.so.*
1212
1213=== removed file 'debian/libubuntu-application-api1.symbols'
1214--- debian/libubuntu-application-api1.symbols 2013-08-26 18:07:34 +0000
1215+++ debian/libubuntu-application-api1.symbols 1970-01-01 00:00:00 +0000
1216@@ -1,130 +0,0 @@
1217-libubuntu_application_api.so.1 libubuntu-application-api1 #MINVER#
1218- u_application_description_destroy@Base 0.18.1daily13.06.21
1219- u_application_description_new@Base 0.18.1daily13.06.21
1220- u_application_description_set_application_id@Base 0.18.1daily13.06.21
1221- u_application_description_set_application_lifecycle_delegate@Base 0.18.1daily13.06.21
1222- u_application_id_compare@Base 0.18.1daily13.06.21
1223- u_application_id_destroy@Base 0.18.1daily13.06.21
1224- u_application_id_new_from_stringn@Base 0.18.1daily13.06.21
1225- u_application_instance_new_from_description_with_options@Base 0.18.1daily13.06.21
1226- u_application_lifecycle_delegate_new@Base 0.18.1daily13.06.21
1227- u_application_lifecycle_delegate_ref@Base 0.18.1daily13.06.21
1228- u_application_lifecycle_delegate_set_application_about_to_stop_cb@Base 0.18.1daily13.06.21
1229- u_application_lifecycle_delegate_set_application_resumed_cb@Base 0.18.1daily13.06.21
1230- u_application_lifecycle_delegate_set_context@Base 0.18.1daily13.06.21
1231- u_application_lifecycle_delegate_unref@Base 0.18.1daily13.06.21
1232- u_application_options_destroy@Base 0.18.1daily13.06.21
1233- u_application_options_get_form_factor@Base 0.18.1daily13.06.21
1234- u_application_options_get_stage@Base 0.18.1daily13.06.21
1235- u_application_options_new_from_cmd_line@Base 0.18.1daily13.06.21
1236- ua_location_heading_update_get_timestamp@Base 0.18.3+13.10.20130807
1237- ua_location_heading_update_ref@Base 0.18.3+13.10.20130807
1238- ua_location_heading_update_unref@Base 0.18.3+13.10.20130807
1239- ua_location_heading_update_get_heading_in_degree@Base 0.18.3+13.10.20130815.1
1240- ua_location_position_update_get_altitude_in_meter@Base 0.18.3+13.10.20130807
1241- ua_location_position_update_get_latitude_in_degree@Base 0.18.3+13.10.20130807
1242- ua_location_position_update_get_longitude_in_degree@Base 0.18.3+13.10.20130807
1243- ua_location_position_update_get_timestamp@Base 0.18.3+13.10.20130807
1244- ua_location_position_update_has_altitude@Base 0.18.3+13.10.20130807
1245- ua_location_position_update_ref@Base 0.18.3+13.10.20130807
1246- ua_location_position_update_unref@Base 0.18.3+13.10.20130807
1247- ua_location_service_create_session_for_high_accuracy@Base 0.18.3+13.10.20130807
1248- ua_location_service_create_session_for_low_accuracy@Base 0.18.3+13.10.20130807
1249- ua_location_service_create_controller@Base 0.18.3+13.10.20130826.3
1250- ua_location_service_session_ref@Base 0.18.3+13.10.20130807
1251- ua_location_service_session_set_heading_updates_handler@Base 0.18.3+13.10.20130807
1252- ua_location_service_session_set_position_updates_handler@Base 0.18.3+13.10.20130807
1253- ua_location_service_session_set_velocity_updates_handler@Base 0.18.3+13.10.20130807
1254- ua_location_service_session_start_heading_updates@Base 0.18.3+13.10.20130807
1255- ua_location_service_session_start_position_updates@Base 0.18.3+13.10.20130807
1256- ua_location_service_session_start_velocity_updates@Base 0.18.3+13.10.20130807
1257- ua_location_service_session_stop_heading_updates@Base 0.18.3+13.10.20130807
1258- ua_location_service_session_stop_position_updates@Base 0.18.3+13.10.20130807
1259- ua_location_service_session_stop_velocity_updates@Base 0.18.3+13.10.20130807
1260- ua_location_service_session_unref@Base 0.18.3+13.10.20130807
1261- ua_location_velocity_update_get_timestamp@Base 0.18.3+13.10.20130807
1262- ua_location_velocity_update_get_velocity_in_meters_per_second@Base 0.18.3+13.10.20130807
1263- ua_location_velocity_update_ref@Base 0.18.3+13.10.20130807
1264- ua_location_velocity_update_unref@Base 0.18.3+13.10.20130807
1265- ua_sensors_accelerometer_disable@Base 0.18.1daily13.06.21
1266- ua_sensors_accelerometer_enable@Base 0.18.1daily13.06.21
1267- ua_sensors_accelerometer_get_max_value@Base 0.18.1daily13.06.21
1268- ua_sensors_accelerometer_get_min_delay@Base 0.18.1daily13.06.21
1269- ua_sensors_accelerometer_get_min_value@Base 0.18.1daily13.06.21
1270- ua_sensors_accelerometer_get_resolution@Base 0.18.1daily13.06.21
1271- ua_sensors_accelerometer_new@Base 0.18.1daily13.06.21
1272- ua_sensors_accelerometer_set_reading_cb@Base 0.18.1daily13.06.21
1273- ua_sensors_light_enable@Base 0.18.1daily13.06.21
1274- ua_sensors_light_disable@Base 0.18.2+13.10.20130708
1275- ua_sensors_light_get_max_value@Base 0.18.1daily13.06.21
1276- ua_sensors_light_get_min_delay@Base 0.18.1daily13.06.21
1277- ua_sensors_light_get_min_value@Base 0.18.1daily13.06.21
1278- ua_sensors_light_get_resolution@Base 0.18.1daily13.06.21
1279- ua_sensors_light_new@Base 0.18.1daily13.06.21
1280- ua_sensors_light_set_reading_cb@Base 0.18.1daily13.06.21
1281- ua_sensors_proximity_disable@Base 0.18.1daily13.06.21
1282- ua_sensors_proximity_enable@Base 0.18.1daily13.06.21
1283- ua_sensors_proximity_get_max_value@Base 0.18.1daily13.06.21
1284- ua_sensors_proximity_get_min_delay@Base 0.18.1daily13.06.21
1285- ua_sensors_proximity_get_min_value@Base 0.18.1daily13.06.21
1286- ua_sensors_proximity_get_resolution@Base 0.18.1daily13.06.21
1287- ua_sensors_proximity_new@Base 0.18.1daily13.06.21
1288- ua_sensors_proximity_set_reading_cb@Base 0.18.1daily13.06.21
1289- ua_ui_display_destroy@Base 0.18.1daily13.06.21
1290- ua_ui_display_get_native_type@Base 0.18.1daily13.06.21
1291- ua_ui_display_new_with_index@Base 0.18.1daily13.06.21
1292- ua_ui_display_query_horizontal_res@Base 0.18.1daily13.06.21
1293- ua_ui_display_query_vertical_res@Base 0.18.1daily13.06.21
1294- ua_ui_get_clipboard_content@Base 0.18.1daily13.06.21
1295- ua_ui_session_new_with_properties@Base 0.18.1daily13.06.21
1296- ua_ui_session_properties_new@Base 0.18.1daily13.06.21
1297- ua_ui_session_properties_set_remote_pid@Base 0.18.1daily13.06.21
1298- ua_ui_session_properties_set_type@Base 0.18.1daily13.06.21
1299- ua_ui_set_clipboard_content@Base 0.18.1daily13.06.21
1300- ua_ui_window_destroy@Base 0.18.1daily13.06.21
1301- ua_ui_window_get_native_type@Base 0.18.1daily13.06.21
1302- ua_ui_window_hide@Base 0.18.1daily13.06.21
1303- ua_ui_window_move@Base 0.18.1daily13.06.21
1304- ua_ui_window_new_for_application_with_properties@Base 0.18.1daily13.06.21
1305- ua_ui_window_properties_destroy@Base 0.18.1daily13.06.21
1306- ua_ui_window_properties_get_title@Base 0.18.1daily13.06.21
1307- ua_ui_window_properties_new_for_normal_window@Base 0.18.1daily13.06.21
1308- ua_ui_window_properties_set_input_cb_and_ctx@Base 0.18.1daily13.06.21
1309- ua_ui_window_properties_set_role@Base 0.18.1daily13.06.21
1310- ua_ui_window_properties_set_titlen@Base 0.18.1daily13.06.21
1311- ua_ui_window_request_fullscreen@Base 0.18.1daily13.06.21
1312- ua_ui_window_resize@Base 0.18.1daily13.06.21
1313- ua_ui_window_show@Base 0.18.1daily13.06.21
1314- ua_url_dispatcher_session@Base 0.18.3+13.10.20130823-0ubuntu1
1315- ua_url_dispatcher_session_open@Base 0.18.3+13.10.20130823-0ubuntu1
1316- uas_accelerometer_event_get_acceleration_x@Base 0.18.1daily13.06.21
1317- uas_accelerometer_event_get_acceleration_y@Base 0.18.1daily13.06.21
1318- uas_accelerometer_event_get_acceleration_z@Base 0.18.1daily13.06.21
1319- uas_accelerometer_event_get_timestamp@Base 0.18.1daily13.06.21
1320- uas_light_event_get_light@Base 0.18.1daily13.06.21
1321- uas_light_event_get_timestamp@Base 0.18.1daily13.06.21
1322- uas_proximity_event_get_distance@Base 0.18.1daily13.06.21
1323- uas_proximity_event_get_timestamp@Base 0.18.1daily13.06.21
1324- ubuntu_ui_install_task_controller@Base 0.18.1daily13.06.21
1325- ubuntu_ui_report_notification_invisible@Base 0.18.1daily13.06.21
1326- ubuntu_ui_report_notification_visible@Base 0.18.1daily13.06.21
1327- ubuntu_ui_report_osk_invisible@Base 0.18.1daily13.06.21
1328- ubuntu_ui_report_osk_visible@Base 0.18.1daily13.06.21
1329- ubuntu_ui_session_focus_running_session_with_id@Base 0.18.1daily13.06.21
1330- ubuntu_ui_session_install_session_lifecycle_observer@Base 0.18.1daily13.06.21
1331- ubuntu_ui_session_properties_get_application_instance_id@Base 0.18.1daily13.06.21
1332- ubuntu_ui_session_properties_get_application_stage_hint@Base 0.18.1daily13.06.21
1333- ubuntu_ui_session_properties_get_desktop_file_hint@Base 0.18.1daily13.06.21
1334- ubuntu_ui_session_snapshot_running_session_with_id@Base 0.18.1daily13.06.21
1335- ubuntu_ui_session_trigger_switch_to_well_known_application@Base 0.18.1daily13.06.21
1336- ubuntu_ui_session_unfocus_running_sessions@Base 0.18.1daily13.06.21
1337- ubuntu_ui_set_surface_trap@Base 0.18.1daily13.06.21
1338- ubuntu_ui_unset_surface_trap@Base 0.18.1daily13.06.21
1339- ua_location_service_controller_disable_gps@Base 0.18.3+13.10.20130826
1340- ua_location_service_controller_disable_service@Base 0.18.3+13.10.20130826
1341- ua_location_service_controller_enable_gps@Base 0.18.3+13.10.20130826
1342- ua_location_service_controller_enable_service@Base 0.18.3+13.10.20130826
1343- ua_location_service_controller_query_status@Base 0.18.3+13.10.20130826
1344- ua_location_service_controller_ref@Base 0.18.3+13.10.20130826
1345- ua_location_service_controller_set_status_changed_handler@Base 0.18.3+13.10.20130826
1346- ua_location_service_controller_unref@Base 0.18.3+13.10.20130826
1347
1348=== modified file 'debian/rules' (properties changed: +x to -x)
1349--- debian/rules 2014-01-31 13:35:28 +0000
1350+++ debian/rules 2014-05-02 12:23:55 +0000
1351@@ -2,14 +2,11 @@
1352
1353 DPKG_GENSYMBOLS_CHECK_LEVEL = 4
1354
1355-export C=gcc-4.7
1356-export CXX=g++-4.7
1357-
1358 %:
1359 dh $@
1360
1361 override_dh_auto_configure:
1362- dh_auto_configure -- -DENABLE_MIRCLIENT_IMPLEMENTATION=true -DENABLE_MIRSERVER_IMPLEMENTATION=true
1363+ dh_auto_configure
1364
1365 override_dh_install:
1366 dh_install --fail-missing
1367
1368=== modified file 'doc/Doxyfile.in'
1369--- doc/Doxyfile.in 2013-07-05 09:13:31 +0000
1370+++ doc/Doxyfile.in 2014-05-02 12:23:55 +0000
1371@@ -1684,7 +1684,7 @@
1372 # explicitly to a value larger than 0 to get control over the balance
1373 # between CPU load and processing speed.
1374
1375-DOT_NUM_THREADS = 0
1376+DOT_NUM_THREADS = 1
1377
1378 # By default doxygen will use the Helvetica font for all dot files that
1379 # doxygen generates. When you want a differently looking font you can specify
1380
1381=== modified file 'include/ubuntu/application/sensors/accelerometer.h'
1382--- include/ubuntu/application/sensors/accelerometer.h 2013-08-22 06:32:14 +0000
1383+++ include/ubuntu/application/sensors/accelerometer.h 2014-05-02 12:23:55 +0000
1384@@ -85,9 +85,10 @@
1385 * \returns The minimum value that can be reported by the sensor.
1386 * \param[in] sensor The sensor instance to be queried.
1387 */
1388- UBUNTU_DLL_PUBLIC float
1389+ UBUNTU_DLL_PUBLIC UStatus
1390 ua_sensors_accelerometer_get_min_value(
1391- UASensorsAccelerometer* sensor);
1392+ UASensorsAccelerometer* sensor,
1393+ float* value);
1394
1395 /**
1396 * \brief Queries the maximum value that can be reported by the sensor.
1397@@ -95,9 +96,10 @@
1398 * \returns The maximum value that can be reported by the sensor.
1399 * \param[in] sensor The sensor instance to be queried.
1400 */
1401- UBUNTU_DLL_PUBLIC float
1402+ UBUNTU_DLL_PUBLIC UStatus
1403 ua_sensors_accelerometer_get_max_value(
1404- UASensorsAccelerometer* sensor);
1405+ UASensorsAccelerometer* sensor,
1406+ float* value);
1407
1408 /**
1409 * \brief Queries the numeric resolution supported by the sensor
1410@@ -105,9 +107,10 @@
1411 * \returns The numeric resolution supported by the sensor.
1412 * \param[in] sensor The sensor instance to be queried.
1413 */
1414- UBUNTU_DLL_PUBLIC float
1415+ UBUNTU_DLL_PUBLIC UStatus
1416 ua_sensors_accelerometer_get_resolution(
1417- UASensorsAccelerometer* sensor);
1418+ UASensorsAccelerometer* sensor,
1419+ float* value);
1420
1421 /**
1422 * \brief Set the callback to be invoked whenever a new sensor reading is available.
1423
1424=== modified file 'include/ubuntu/application/sensors/event/accelerometer.h'
1425--- include/ubuntu/application/sensors/event/accelerometer.h 2013-08-22 06:32:14 +0000
1426+++ include/ubuntu/application/sensors/event/accelerometer.h 2014-05-02 12:23:55 +0000
1427@@ -49,9 +49,10 @@
1428 * \returns The acceleration in x-axis direction.
1429 * \param[in] event The reading to be queried.
1430 */
1431- UBUNTU_DLL_PUBLIC float
1432+ UBUNTU_DLL_PUBLIC UStatus
1433 uas_accelerometer_event_get_acceleration_x(
1434- UASAccelerometerEvent* event);
1435+ UASAccelerometerEvent* event,
1436+ float* value);
1437
1438 /**
1439 * \brief Query the acceleration in y-axis direction.
1440@@ -59,9 +60,10 @@
1441 * \returns The acceleration in y-axis direction.
1442 * \param[in] event The reading to be queried.
1443 */
1444- UBUNTU_DLL_PUBLIC float
1445+ UBUNTU_DLL_PUBLIC UStatus
1446 uas_accelerometer_event_get_acceleration_y(
1447- UASAccelerometerEvent* event);
1448+ UASAccelerometerEvent* event,
1449+ float* value);
1450
1451 /**
1452 * \brief Query the acceleration in z-axis direction.
1453@@ -69,9 +71,10 @@
1454 * \returns The acceleration in z-axis direction.
1455 * \param[in] event The reading to be queried.
1456 */
1457- UBUNTU_DLL_PUBLIC float
1458+ UBUNTU_DLL_PUBLIC UStatus
1459 uas_accelerometer_event_get_acceleration_z(
1460- UASAccelerometerEvent* event);
1461+ UASAccelerometerEvent* event,
1462+ float* value);
1463
1464 #ifdef __cplusplus
1465 }
1466
1467=== modified file 'include/ubuntu/application/sensors/event/light.h'
1468--- include/ubuntu/application/sensors/event/light.h 2013-08-22 06:32:14 +0000
1469+++ include/ubuntu/application/sensors/event/light.h 2014-05-02 12:23:55 +0000
1470@@ -49,9 +49,10 @@
1471 * \returns The ambient light level.
1472 * \param[in] event The reading to be queried.
1473 */
1474- UBUNTU_DLL_PUBLIC float
1475+ UBUNTU_DLL_PUBLIC UStatus
1476 uas_light_event_get_light(
1477- UASLightEvent* event);
1478+ UASLightEvent* event,
1479+ float* value);
1480
1481 #ifdef __cplusplus
1482 }
1483
1484=== modified file 'include/ubuntu/application/sensors/light.h'
1485--- include/ubuntu/application/sensors/light.h 2013-08-22 06:32:14 +0000
1486+++ include/ubuntu/application/sensors/light.h 2014-05-02 12:23:55 +0000
1487@@ -85,9 +85,10 @@
1488 * \returns The minimum value that can be reported by the sensor.
1489 * \param[in] sensor The sensor instance to be queried.
1490 */
1491- UBUNTU_DLL_PUBLIC float
1492+ UBUNTU_DLL_PUBLIC UStatus
1493 ua_sensors_light_get_min_value(
1494- UASensorsLight* sensor);
1495+ UASensorsLight* sensor,
1496+ float* value);
1497
1498 /**
1499 * \brief Queries the maximum value that can be reported by the sensor.
1500@@ -95,9 +96,10 @@
1501 * \returns The maximum value that can be reported by the sensor.
1502 * \param[in] sensor The sensor instance to be queried.
1503 */
1504- UBUNTU_DLL_PUBLIC float
1505+ UBUNTU_DLL_PUBLIC UStatus
1506 ua_sensors_light_get_max_value(
1507- UASensorsLight* sensor);
1508+ UASensorsLight* sensor,
1509+ float* value);
1510
1511 /**
1512 * \brief Queries the numeric resolution supported by the sensor
1513@@ -105,9 +107,10 @@
1514 * \returns The numeric resolution supported by the sensor.
1515 * \param[in] sensor The sensor instance to be queried.
1516 */
1517- UBUNTU_DLL_PUBLIC float
1518+ UBUNTU_DLL_PUBLIC UStatus
1519 ua_sensors_light_get_resolution(
1520- UASensorsLight* sensor);
1521+ UASensorsLight* sensor,
1522+ float* value);
1523
1524 /**
1525 * \brief Set the callback to be invoked whenever a new sensor reading is available.
1526
1527=== modified file 'include/ubuntu/application/sensors/proximity.h'
1528--- include/ubuntu/application/sensors/proximity.h 2013-08-22 06:32:14 +0000
1529+++ include/ubuntu/application/sensors/proximity.h 2014-05-02 12:23:55 +0000
1530@@ -85,9 +85,10 @@
1531 * \returns The minimum value that can be reported by the sensor.
1532 * \param[in] sensor The sensor instance to be queried.
1533 */
1534- UBUNTU_DLL_PUBLIC float
1535+ UBUNTU_DLL_PUBLIC UStatus
1536 ua_sensors_proximity_get_min_value(
1537- UASensorsProximity* sensor);
1538+ UASensorsProximity* sensor,
1539+ float* value);
1540
1541 /**
1542 * \brief Queries the maximum value that can be reported by the sensor.
1543@@ -95,9 +96,10 @@
1544 * \returns The maximum value that can be reported by the sensor.
1545 * \param[in] sensor The sensor instance to be queried.
1546 */
1547- UBUNTU_DLL_PUBLIC float
1548+ UBUNTU_DLL_PUBLIC UStatus
1549 ua_sensors_proximity_get_max_value(
1550- UASensorsProximity* sensor);
1551+ UASensorsProximity* sensor,
1552+ float* value);
1553
1554 /**
1555 * \brief Queries the numeric resolution supported by the sensor
1556@@ -105,9 +107,10 @@
1557 * \returns The numeric resolution supported by the sensor.
1558 * \param[in] sensor The sensor instance to be queried.
1559 */
1560- UBUNTU_DLL_PUBLIC float
1561+ UBUNTU_DLL_PUBLIC UStatus
1562 ua_sensors_proximity_get_resolution(
1563- UASensorsProximity* sensor);
1564+ UASensorsProximity* sensor,
1565+ float* value);
1566
1567 /**
1568 * \brief Set the callback to be invoked whenever a new sensor reading is available.
1569
1570=== modified file 'include/ubuntu/application/sensors/ubuntu_application_sensors.h'
1571--- include/ubuntu/application/sensors/ubuntu_application_sensors.h 2013-08-22 07:17:47 +0000
1572+++ include/ubuntu/application/sensors/ubuntu_application_sensors.h 2014-05-02 12:23:55 +0000
1573@@ -18,6 +18,7 @@
1574 #ifndef UBUNTU_APPLICATION_SENSORS_C_API_H_
1575 #define UBUNTU_APPLICATION_SENSORS_C_API_H_
1576
1577+#include <ubuntu/status.h>
1578 #include <ubuntu/visibility.h>
1579
1580 #include <stdint.h>
1581@@ -139,15 +140,17 @@
1582 /** Returns the minimum valid value for the sensor_type.
1583 * \ingroup sensor_access
1584 */
1585- UBUNTU_DLL_PUBLIC float ubuntu_sensor_get_sensor_min_value(ubuntu_sensor_type sensor_type);
1586+ UBUNTU_DLL_PUBLIC UStatus ubuntu_sensor_get_sensor_min_value(ubuntu_sensor_type sensor_type, float* value);
1587+
1588 /** Returns the maximum valid value for the sensor_type.
1589 * \ingroup sensor_access
1590 */
1591- UBUNTU_DLL_PUBLIC float ubuntu_sensor_get_sensor_max_value(ubuntu_sensor_type sensor_type);
1592+ UBUNTU_DLL_PUBLIC UStatus ubuntu_sensor_get_sensor_max_value(ubuntu_sensor_type sensor_type, float* value);
1593+
1594 /** Returns the resolution of valid values for the sensor_type.
1595 * \ingroup sensor_access
1596 */
1597- UBUNTU_DLL_PUBLIC float ubuntu_sensor_get_sensor_resolution(ubuntu_sensor_type sensor_type);
1598+ UBUNTU_DLL_PUBLIC UStatus ubuntu_sensor_get_sensor_resolution(ubuntu_sensor_type sensor_type, float* value);
1599
1600 /** \example test_sensors_api.cpp */
1601 #ifdef __cplusplus
1602
1603=== modified file 'include/ubuntu/hardware/CMakeLists.txt'
1604--- include/ubuntu/hardware/CMakeLists.txt 2013-07-18 09:08:17 +0000
1605+++ include/ubuntu/hardware/CMakeLists.txt 2014-05-02 12:23:55 +0000
1606@@ -1,9 +1,10 @@
1607 set(
1608 UBUNTU_HARDWARE_HEADERS
1609+ alarm.h
1610 gps.h
1611 )
1612
1613 install(
1614 FILES ${UBUNTU_HARDWARE_HEADERS}
1615 DESTINATION include/ubuntu/hardware
1616-)
1617\ No newline at end of file
1618+)
1619
1620=== added file 'include/ubuntu/hardware/alarm.h'
1621--- include/ubuntu/hardware/alarm.h 1970-01-01 00:00:00 +0000
1622+++ include/ubuntu/hardware/alarm.h 2014-05-02 12:23:55 +0000
1623@@ -0,0 +1,98 @@
1624+/*
1625+ * Copyright © 2014 Canonical Ltd.
1626+ *
1627+ * This program is free software: you can redistribute it and/or modify
1628+ * it under the terms of the GNU Lesser General Public License version 3 as
1629+ * published by the Free Software Foundation.
1630+ *
1631+ * This program is distributed in the hope that it will be useful,
1632+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
1633+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1634+ * GNU Lesser General Public License for more details.
1635+ *
1636+ * You should have received a copy of the GNU Lesser General Public License
1637+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
1638+ *
1639+ * Authored by: Thomas Voß <thomas.voss@canonical.com>
1640+ */
1641+#ifndef UBUNTU_HARDWARE_ALARM_H_
1642+#define UBUNTU_HARDWARE_ALARM_H_
1643+
1644+#include <ubuntu/status.h>
1645+#include <ubuntu/visibility.h>
1646+
1647+#ifdef __cplusplus
1648+extern "C" {
1649+#endif
1650+
1651+/** The time reference that alarms are setup to. */
1652+typedef enum
1653+{
1654+ U_HARDWARE_ALARM_TIME_REFERENCE_BOOT, /**< Relative to the device's boot time, including sleep. */
1655+ U_HARDWARE_ALARM_TIME_REFERENCE_NOW /**< Relative from now on. */
1656+} UbuntuHardwareAlarmTimeReference;
1657+
1658+typedef UbuntuHardwareAlarmTimeReference UHardwareAlarmTimeReference;
1659+
1660+/** Describes if an alarm is able to wakup the device from sleep. */
1661+typedef enum
1662+{
1663+ /** Alarm will wakeup the device from sleep. */
1664+ U_HARDWARE_ALARM_SLEEP_BEHAVIOR_WAKEUP_DEVICE,
1665+ /** Alarm will not wakeup the device and will be delivered on the next wakeup of the device */
1666+ U_HARDWARE_ALARM_SLEEP_BEHAVIOR_KEEP_DEVICE_ASLEEP
1667+} UbuntuHardwareAlarmSleepBehavior;
1668+
1669+typedef UbuntuHardwareAlarmSleepBehavior UHardwareAlarmSleepBehavior;
1670+
1671+/** Bundles the time reference and sleep/wakeup behavior when waiting for an alarm to happen. */
1672+typedef struct
1673+{
1674+ UHardwareAlarmTimeReference reference;
1675+ UHardwareAlarmSleepBehavior sleep_behavior;
1676+} UbuntuHardwareAlarmWaitResult;
1677+
1678+typedef UbuntuHardwareAlarmWaitResult UHardwareAlarmWaitResult;
1679+
1680+/** Opaque type modelling access to the kernel/hw-level alarm capabilities. */
1681+typedef struct UbuntuHardwareAlarm* UHardwareAlarm;
1682+
1683+/** Creates an instance and/or increments its refcount. */
1684+UBUNTU_DLL_PUBLIC UHardwareAlarm
1685+u_hardware_alarm_create();
1686+
1687+/** Increments the instance's ref count. */
1688+UBUNTU_DLL_PUBLIC void
1689+u_hardware_alarm_ref(
1690+ UHardwareAlarm alarm);
1691+
1692+/** Decrements the instance's ref count. */
1693+UBUNTU_DLL_PUBLIC void
1694+u_hardware_alarm_unref(
1695+ UHardwareAlarm alarm);
1696+
1697+/** Reports a timezone change to kernel and HW. */
1698+UBUNTU_DLL_PUBLIC UStatus
1699+u_hardware_alarm_set_timezone(
1700+ UHardwareAlarm alarm,
1701+ const struct timezone *tz);
1702+
1703+/** Sets and arms a timer. */
1704+UBUNTU_DLL_PUBLIC UStatus
1705+u_hardware_alarm_set_relative_to_with_behavior(
1706+ UHardwareAlarm alarm,
1707+ UHardwareAlarmTimeReference time_reference,
1708+ UHardwareAlarmSleepBehavior behavior,
1709+ const struct timespec *ts);
1710+
1711+/** Blocks until the next alarm occurs. */
1712+UBUNTU_DLL_PUBLIC UStatus
1713+u_hardware_alarm_wait_for_next_alarm(
1714+ UHardwareAlarm alarm,
1715+ UHardwareAlarmWaitResult *result);
1716+
1717+#ifdef __cplusplus
1718+}
1719+#endif
1720+
1721+#endif
1722
1723=== modified file 'src/ubuntu/CMakeLists.txt'
1724--- src/ubuntu/CMakeLists.txt 2013-12-02 17:03:45 +0000
1725+++ src/ubuntu/CMakeLists.txt 2014-05-02 12:23:55 +0000
1726@@ -1,10 +1,3 @@
1727-include_directories(
1728- ${CMAKE_CURRENT_SOURCE_DIR}
1729-)
1730-
1731-add_subdirectory(application)
1732-add_subdirectory(testbackend)
1733-
1734 set(
1735 UBUNTU_APPLICATION_API_LINK_LIBRARIES
1736
1737@@ -12,18 +5,42 @@
1738 ubuntu_application_url_dispatcher
1739 )
1740
1741-if(ENABLE_HYBRIS_IMPLEMENTATION)
1742- add_subdirectory(hybris/)
1743-endif()
1744-
1745-if(ENABLE_MIRSERVER_IMPLEMENTATION OR ENABLE_MIRCLIENT_IMPLEMENTATION)
1746- add_subdirectory(mircommon/)
1747-endif()
1748-
1749-if(ENABLE_MIRSERVER_IMPLEMENTATION)
1750- add_subdirectory(mirserver/)
1751-endif()
1752-
1753-if(ENABLE_MIRCLIENT_IMPLEMENTATION)
1754- add_subdirectory(mirclient/)
1755-endif()
1756+add_subdirectory(common)
1757+add_subdirectory(desktop)
1758+add_subdirectory(touch)
1759+add_subdirectory(testbackend)
1760+
1761+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -fPIC")
1762+
1763+add_library(
1764+ ubuntu_application_api SHARED
1765+
1766+ ubuntu_application_api.cpp
1767+)
1768+
1769+include_directories(
1770+ ${CMAKE_BINARY_DIR}/include
1771+)
1772+
1773+target_link_libraries(
1774+ ubuntu_application_api
1775+
1776+ dl
1777+ #${Hybris}
1778+)
1779+
1780+set_target_properties(
1781+ ubuntu_application_api
1782+ PROPERTIES
1783+ VERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}.${UBUNTU_PLATFORM_API_VERSION_MINOR}.${UBUNTU_PLATFORM_API_VERSION_PATCH}
1784+ SOVERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}
1785+)
1786+
1787+install(
1788+ TARGETS ubuntu_application_api
1789+ ${INSTALL_TARGETS_DEFAULT_ARGS}
1790+)
1791+
1792+#if(ENABLE_MIRCLIENT_IMPLEMENTATION)
1793+# add_subdirectory(mirclient/)
1794+#endif()
1795
1796=== added directory 'src/ubuntu/common'
1797=== added file 'src/ubuntu/common/CMakeLists.txt'
1798--- src/ubuntu/common/CMakeLists.txt 1970-01-01 00:00:00 +0000
1799+++ src/ubuntu/common/CMakeLists.txt 2014-05-02 12:23:55 +0000
1800@@ -0,0 +1,8 @@
1801+include_directories(
1802+ ${CMAKE_CURRENT_SOURCE_DIR}
1803+)
1804+
1805+add_subdirectory(application)
1806+add_subdirectory(mircommon)
1807+add_subdirectory(mirclient)
1808+add_subdirectory(mirserver)
1809
1810=== renamed directory 'src/ubuntu/application' => 'src/ubuntu/common/application'
1811=== renamed directory 'src/ubuntu/mirclient' => 'src/ubuntu/common/mirclient'
1812=== modified file 'src/ubuntu/common/mirclient/CMakeLists.txt'
1813--- src/ubuntu/mirclient/CMakeLists.txt 2014-02-07 14:32:44 +0000
1814+++ src/ubuntu/common/mirclient/CMakeLists.txt 2014-05-02 12:23:55 +0000
1815@@ -13,11 +13,6 @@
1816
1817 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -fPIC")
1818
1819-add_library(
1820- ubuntu_application_api_mirclient SHARED
1821- ${SOURCES}
1822-)
1823-
1824 include_directories(
1825 ${CMAKE_BINARY_DIR}/include
1826 ${MIRCLIENT_INCLUDE_DIRS}
1827@@ -25,18 +20,17 @@
1828 ${CMAKE_CURRENT_BINARY_DIR}
1829 )
1830
1831+add_library(
1832+ ubuntu_application_api_mirclient STATIC
1833+ ${SOURCES}
1834+)
1835+
1836+SET(MIRCOMMON_LINK -Wl,--whole-archive ubuntu_application_api_mircommon -Wl,--no-whole-archive)
1837+
1838 target_link_libraries(
1839 ubuntu_application_api_mirclient
1840+
1841 ${MIRCLIENT_LDFLAGS} ${MIRCLIENT_LIBRARIES}
1842- -Wl,--whole-archive ubuntu_application_api_mircommon ${UBUNTU_APPLICATION_API_LINK_LIBRARIES} -Wl,--no-whole-archive
1843 ${PROTOBUF_LIBRARIES}
1844-)
1845-
1846-set_target_properties(
1847- ubuntu_application_api_mirclient
1848- PROPERTIES
1849- VERSION 1.0
1850- SOVERSION 1
1851-)
1852-
1853-install(TARGETS ubuntu_application_api_mirclient ${INSTALL_TARGETS_DEFAULT_ARGS})
1854+# ${MIRCOMMON_LINK}
1855+)
1856
1857=== modified file 'src/ubuntu/common/mirclient/ubuntu_application_api_mirclient.cpp'
1858--- src/ubuntu/mirclient/ubuntu_application_api_mirclient.cpp 2014-02-07 14:32:44 +0000
1859+++ src/ubuntu/common/mirclient/ubuntu_application_api_mirclient.cpp 2014-05-02 12:23:55 +0000
1860@@ -86,6 +86,15 @@
1861 extern "C"
1862 {
1863
1864+void u_application_init(void *args)
1865+{
1866+ (void) args;
1867+}
1868+
1869+void u_application_finish()
1870+{
1871+}
1872+
1873 // TODO<papi>: Eliminate global instance by adding Instance to some functions (i.e. display queries)
1874 // TODO: We can't take ownership of description and options until we get rid of the global instance
1875 // so we leak them.
1876
1877=== renamed directory 'src/ubuntu/mircommon' => 'src/ubuntu/common/mircommon'
1878=== modified file 'src/ubuntu/common/mircommon/CMakeLists.txt'
1879--- src/ubuntu/mircommon/CMakeLists.txt 2014-02-17 22:40:09 +0000
1880+++ src/ubuntu/common/mircommon/CMakeLists.txt 2014-05-02 12:23:55 +0000
1881@@ -7,19 +7,6 @@
1882 lifecycle_delegate_mir.cpp
1883 )
1884
1885-if(ENABLE_HYBRIS_IMPLEMENTATION)
1886- list(APPEND SOURCES
1887- ../hybris/ubuntu_application_sensors_hybris.cpp
1888- )
1889- list(APPEND LINK_LIBRARIES
1890- ${Hybris}
1891- )
1892-else()
1893- list(APPEND SOURCES
1894- ubuntu_application_sensors_desktop.cpp
1895- )
1896-endif()
1897-
1898 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC --std=c++11")
1899
1900 include_directories(
1901@@ -34,6 +21,5 @@
1902 target_link_libraries(
1903 ubuntu_application_api_mircommon
1904
1905- ${UBUNTU_APPLICATION_API_LINK_LIBRARIES}
1906 ${LINK_LIBRARIES}
1907 )
1908
1909=== modified file 'src/ubuntu/common/mircommon/ubuntu_application_sensors_desktop.cpp'
1910--- src/ubuntu/mircommon/ubuntu_application_sensors_desktop.cpp 2013-06-05 23:47:51 +0000
1911+++ src/ubuntu/common/mircommon/ubuntu_application_sensors_desktop.cpp 2014-05-02 12:23:55 +0000
1912@@ -46,19 +46,34 @@
1913 return 0;
1914 }
1915
1916-float ua_sensors_accelerometer_get_min_value(UASensorsAccelerometer*)
1917-{
1918- return 0.0;
1919-}
1920-
1921-float ua_sensors_accelerometer_get_max_value(UASensorsAccelerometer*)
1922-{
1923- return 0.0;
1924-}
1925-
1926-float ua_sensors_accelerometer_get_resolution(UASensorsAccelerometer*)
1927-{
1928- return 0.0;
1929+UStatus ua_sensors_accelerometer_get_min_value(UASensorsAccelerometer*, float* value)
1930+{
1931+ if (!value)
1932+ return U_STATUS_ERROR;
1933+
1934+ *value = 0.f;
1935+
1936+ return U_STATUS_SUCCESS;
1937+}
1938+
1939+UStatus ua_sensors_accelerometer_get_max_value(UASensorsAccelerometer*, float* value)
1940+{
1941+ if (!value)
1942+ return U_STATUS_ERROR;
1943+
1944+ *value = 0.f;
1945+
1946+ return U_STATUS_SUCCESS;
1947+}
1948+
1949+UStatus ua_sensors_accelerometer_get_resolution(UASensorsAccelerometer*, float* value)
1950+{
1951+ if (!value)
1952+ return U_STATUS_ERROR;
1953+
1954+ *value = 0.f;
1955+
1956+ return U_STATUS_SUCCESS;
1957 }
1958
1959 void ua_sensors_accelerometer_set_reading_cb(UASensorsAccelerometer*, on_accelerometer_event_cb, void*)
1960@@ -71,19 +86,34 @@
1961 return 0;
1962 }
1963
1964-float uas_accelerometer_event_get_acceleration_x(UASAccelerometerEvent*)
1965-{
1966- return 0.0;
1967-}
1968-
1969-float uas_accelerometer_event_get_acceleration_y(UASAccelerometerEvent*)
1970-{
1971- return 0.0;
1972-}
1973-
1974-float uas_accelerometer_event_get_acceleration_z(UASAccelerometerEvent*)
1975-{
1976- return 0.0;
1977+UStatus uas_accelerometer_event_get_acceleration_x(UASAccelerometerEvent*, float* value)
1978+{
1979+ if (!value)
1980+ return U_STATUS_ERROR;
1981+
1982+ *value = 0.f;
1983+
1984+ return U_STATUS_SUCCESS;
1985+}
1986+
1987+UStatus uas_accelerometer_event_get_acceleration_y(UASAccelerometerEvent*, float* value)
1988+{
1989+ if (!value)
1990+ return U_STATUS_ERROR;
1991+
1992+ *value = 0.f;
1993+
1994+ return U_STATUS_SUCCESS;
1995+}
1996+
1997+UStatus uas_accelerometer_event_get_acceleration_z(UASAccelerometerEvent*, float* value)
1998+{
1999+ if (!value)
2000+ return U_STATUS_ERROR;
2001+
2002+ *value = 0.f;
2003+
2004+ return U_STATUS_SUCCESS;
2005 }
2006
2007 // Proximity Sensor
2008@@ -107,19 +137,34 @@
2009 return 0;
2010 }
2011
2012-float ua_sensors_proximity_get_min_value(UASensorsProximity*)
2013-{
2014- return 0.0;
2015-}
2016-
2017-float ua_sensors_proximity_get_max_value(UASensorsProximity*)
2018-{
2019- return 0.0;
2020-}
2021-
2022-float ua_sensors_proximity_get_resolution(UASensorsProximity*)
2023-{
2024- return 0.0;
2025+UStatus ua_sensors_proximity_get_min_value(UASensorsProximity*, float* value)
2026+{
2027+ if (!value)
2028+ return U_STATUS_ERROR;
2029+
2030+ *value = 0.f;
2031+
2032+ return U_STATUS_SUCCESS;
2033+}
2034+
2035+UStatus ua_sensors_proximity_get_max_value(UASensorsProximity*, float* value)
2036+{
2037+ if (!value)
2038+ return U_STATUS_ERROR;
2039+
2040+ *value = 0.f;
2041+
2042+ return U_STATUS_SUCCESS;
2043+}
2044+
2045+UStatus ua_sensors_proximity_get_resolution(UASensorsProximity*, float* value)
2046+{
2047+ if (!value)
2048+ return U_STATUS_ERROR;
2049+
2050+ *value = 0.f;
2051+
2052+ return U_STATUS_SUCCESS;
2053 }
2054
2055 void ua_sensors_proximity_set_reading_cb(UASensorsProximity*, on_proximity_event_cb, void*)
2056@@ -159,19 +204,34 @@
2057 return 0;
2058 }
2059
2060-float ua_sensors_light_get_min_value(UASensorsLight*)
2061-{
2062- return 0.0;
2063-}
2064-
2065-float ua_sensors_light_get_max_value(UASensorsLight*)
2066-{
2067- return 0.0;
2068-}
2069-
2070-float ua_sensors_light_get_resolution(UASensorsLight*)
2071-{
2072- return 0.0;
2073+UStatus ua_sensors_light_get_min_value(UASensorsLight*, float* value)
2074+{
2075+ if (!value)
2076+ return U_STATUS_ERROR;
2077+
2078+ *value = 0.f;
2079+
2080+ return U_STATUS_SUCCESS;
2081+}
2082+
2083+UStatus ua_sensors_light_get_max_value(UASensorsLight*, float* value)
2084+{
2085+ if (!value)
2086+ return U_STATUS_ERROR;
2087+
2088+ *value = 0.f;
2089+
2090+ return U_STATUS_SUCCESS;
2091+}
2092+
2093+UStatus ua_sensors_light_get_resolution(UASensorsLight*, float* value)
2094+{
2095+ if (!value)
2096+ return U_STATUS_ERROR;
2097+
2098+ *value = 0.f;
2099+
2100+ return U_STATUS_SUCCESS;
2101 }
2102
2103 void ua_sensors_light_set_reading_cb(UASensorsLight*, on_light_event_cb, void*)
2104@@ -184,7 +244,12 @@
2105 return 0;
2106 }
2107
2108-float uas_light_event_get_light(UASLightEvent*)
2109+UStatus uas_light_event_get_light(UASLightEvent*, float* value)
2110 {
2111- return 0.0;
2112+ if (!value)
2113+ return U_STATUS_ERROR;
2114+
2115+ *value = 0.f;
2116+
2117+ return U_STATUS_SUCCESS;
2118 }
2119
2120=== renamed directory 'src/ubuntu/mirserver' => 'src/ubuntu/common/mirserver'
2121=== modified file 'src/ubuntu/common/mirserver/CMakeLists.txt'
2122--- src/ubuntu/mirserver/CMakeLists.txt 2014-01-09 18:47:45 +0000
2123+++ src/ubuntu/common/mirserver/CMakeLists.txt 2014-05-02 12:23:55 +0000
2124@@ -7,30 +7,23 @@
2125
2126 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -fPIC")
2127
2128-add_library(
2129- ubuntu_application_api_mirserver SHARED
2130- ${SOURCES}
2131-)
2132-
2133 include_directories(
2134 ${CMAKE_BINARY_DIR}/include
2135 ${MIRSERVER_INCLUDE_DIRS}
2136 )
2137
2138+add_library(
2139+ ubuntu_application_api_mirserver STATIC
2140+ ${SOURCES}
2141+)
2142+
2143+#ubuntu_application_api_d_sensors
2144+
2145 target_link_libraries(
2146 ubuntu_application_api_mirserver
2147- ${MIRSERVER_LDFLAGS} ${MIRSERVER_LIBRARIES}
2148- -Wl,--whole-archive ubuntu_application_api_mircommon ${UBUNTU_APPLICATION_API_LINK_LIBRARIES}
2149- -Wl,--no-whole-archive
2150-)
2151-
2152-
2153-set_target_properties(
2154- ubuntu_application_api_mirserver
2155- PROPERTIES
2156- VERSION 1.0
2157- SOVERSION 1
2158-)
2159-
2160-install(TARGETS ubuntu_application_api_mirserver ${INSTALL_TARGETS_DEFAULT_ARGS})
2161+
2162+ ${MIRSERVER_LDFLAGS} ${MIRSERVER_LIBRARIES}
2163+# ${MIRCOMMON_LINK}
2164+)
2165+
2166 install(FILES ubuntu_application_api_mirserver_priv.h DESTINATION include/ubuntu/application)
2167
2168=== modified file 'src/ubuntu/common/mirserver/ubuntu_application_api_mirserver.cpp'
2169--- src/ubuntu/mirserver/ubuntu_application_api_mirserver.cpp 2014-04-15 20:23:07 +0000
2170+++ src/ubuntu/common/mirserver/ubuntu_application_api_mirserver.cpp 2014-05-02 12:23:55 +0000
2171@@ -77,19 +77,28 @@
2172
2173 extern "C"
2174 {
2175-void ua_ui_mirserver_init(mir::DefaultServerConfiguration& config)
2176+void u_application_init(void *args)
2177 {
2178+ mir::DefaultServerConfiguration* config = static_cast<mir::DefaultServerConfiguration*>(args);
2179 auto context = global_mirserver_context();
2180
2181+<<<<<<< TREE
2182 context->display = config.the_display();
2183 context->buffer_allocator = config.the_buffer_allocator();
2184 context->surface_coordinator = config.the_surface_coordinator();
2185 context->session_listener = config.the_session_listener();
2186+=======
2187+ context->display = config->the_display();
2188+ context->buffer_allocator = config->the_buffer_allocator();
2189+ context->surface_coordinator = config->the_surface_coordinator();
2190+ context->placement_strategy = config->the_shell_placement_strategy();
2191+ context->session_listener = config->the_shell_session_listener();
2192+>>>>>>> MERGE-SOURCE
2193 context->input_platform = mir::input::receiver::InputPlatform::create();
2194- context->egl_client = config.the_graphics_platform()->create_internal_client();
2195+ context->egl_client = config->the_graphics_platform()->create_internal_client();
2196 }
2197
2198-void ua_ui_mirserver_finish()
2199+void u_application_finish()
2200 {
2201 auto context = global_mirserver_context();
2202
2203
2204=== added directory 'src/ubuntu/desktop'
2205=== added file 'src/ubuntu/desktop/CMakeLists.txt'
2206--- src/ubuntu/desktop/CMakeLists.txt 1970-01-01 00:00:00 +0000
2207+++ src/ubuntu/desktop/CMakeLists.txt 2014-05-02 12:23:55 +0000
2208@@ -0,0 +1,62 @@
2209+add_library(
2210+ ubuntu_application_api_desktop_mirclient MODULE
2211+
2212+ module_version.h
2213+)
2214+
2215+add_library(
2216+ ubuntu_application_api_desktop_mirserver MODULE
2217+
2218+ module_version.h
2219+)
2220+
2221+target_link_libraries(
2222+ ubuntu_application_api_desktop_mirclient
2223+
2224+ "-Wl,--whole-archive"
2225+ ubuntu_application_api_mirclient
2226+ ubuntu_application_api_mircommon
2227+ #TODO: ubuntu_application_api_d_sensors
2228+ ${UBUNTU_APPLICATION_API_LINK_LIBRARIES}
2229+ "-Wl,--no-whole-archive"
2230+ #TODO: Alarms
2231+)
2232+
2233+target_link_libraries(
2234+ ubuntu_application_api_desktop_mirserver
2235+
2236+ "-Wl,--whole-archive"
2237+ ubuntu_application_api_mirserver
2238+ ubuntu_application_api_mircommon
2239+ #TODO: ubuntu_application_api_d_sensors
2240+ ${UBUNTU_APPLICATION_API_LINK_LIBRARIES}
2241+ "-Wl,--no-whole-archive"
2242+ #TODO: Alarms
2243+)
2244+
2245+set_target_properties(
2246+ ubuntu_application_api_desktop_mirclient
2247+ PROPERTIES
2248+ VERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}.${UBUNTU_PLATFORM_API_VERSION_MINOR}.${UBUNTU_PLATFORM_API_VERSION_PATCH}
2249+ SOVERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}
2250+)
2251+
2252+set_target_properties(
2253+ ubuntu_application_api_desktop_mirserver
2254+ PROPERTIES
2255+ VERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}.${UBUNTU_PLATFORM_API_VERSION_MINOR}.${UBUNTU_PLATFORM_API_VERSION_PATCH}
2256+ SOVERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}
2257+)
2258+install(
2259+ TARGETS ubuntu_application_api_desktop_mirclient
2260+ # this is not a development library to compile against, users should always
2261+ # specify the SONAME; so don't build a *.so
2262+ LIBRARY DESTINATION "${LIB_INSTALL_DIR}" NAMELINK_SKIP
2263+)
2264+
2265+install(
2266+ TARGETS ubuntu_application_api_desktop_mirserver
2267+ # this is not a development library to compile against, users should always
2268+ # specify the SONAME; so don't build a *.so
2269+ LIBRARY DESTINATION "${LIB_INSTALL_DIR}" NAMELINK_SKIP
2270+)
2271
2272=== added directory 'src/ubuntu/hardware'
2273=== modified file 'src/ubuntu/testbackend/ubuntu_application_sensors.cpp'
2274--- src/ubuntu/testbackend/ubuntu_application_sensors.cpp 2013-12-12 14:40:21 +0000
2275+++ src/ubuntu/testbackend/ubuntu_application_sensors.cpp 2014-05-02 12:23:55 +0000
2276@@ -375,22 +375,34 @@
2277 return static_cast<TestSensor*>(s)->min_delay;
2278 }
2279
2280-float ua_sensors_accelerometer_get_min_value(UASensorsAccelerometer* s) __SF_FN_ATTR;
2281-float ua_sensors_accelerometer_get_min_value(UASensorsAccelerometer* s)
2282-{
2283- return static_cast<TestSensor*>(s)->min_value;
2284-}
2285-
2286-float ua_sensors_accelerometer_get_max_value(UASensorsAccelerometer* s) __SF_FN_ATTR;
2287-float ua_sensors_accelerometer_get_max_value(UASensorsAccelerometer* s)
2288-{
2289- return static_cast<TestSensor*>(s)->max_value;
2290-}
2291-
2292-float ua_sensors_accelerometer_get_resolution(UASensorsAccelerometer* s) __SF_FN_ATTR;
2293-float ua_sensors_accelerometer_get_resolution(UASensorsAccelerometer* s)
2294-{
2295- return static_cast<TestSensor*>(s)->resolution;
2296+UStatus ua_sensors_accelerometer_get_min_value(UASensorsAccelerometer* s, float* value)
2297+{
2298+ if (!value)
2299+ return U_STATUS_ERROR;
2300+
2301+ *value = static_cast<TestSensor*>(s)->min_value;
2302+
2303+ return U_STATUS_SUCCESS;
2304+}
2305+
2306+UStatus ua_sensors_accelerometer_get_max_value(UASensorsAccelerometer* s, float* value)
2307+{
2308+ if (!value)
2309+ return U_STATUS_ERROR;
2310+
2311+ *value = static_cast<TestSensor*>(s)->max_value;
2312+
2313+ return U_STATUS_SUCCESS;
2314+}
2315+
2316+UStatus ua_sensors_accelerometer_get_resolution(UASensorsAccelerometer* s, float* value)
2317+{
2318+ if (!value)
2319+ return U_STATUS_ERROR;
2320+
2321+ *value = static_cast<TestSensor*>(s)->resolution;
2322+
2323+ return U_STATUS_SUCCESS;
2324 }
2325
2326 void ua_sensors_accelerometer_set_reading_cb(UASensorsAccelerometer* s, on_accelerometer_event_cb cb, void* ctx)
2327@@ -405,22 +417,34 @@
2328 return static_cast<TestSensor*>(e)->timestamp;
2329 }
2330
2331-float uas_accelerometer_event_get_acceleration_x(UASAccelerometerEvent* e) __SF_FN_ATTR;
2332-float uas_accelerometer_event_get_acceleration_x(UASAccelerometerEvent* e)
2333-{
2334- return static_cast<TestSensor*>(e)->x;
2335-}
2336-
2337-float uas_accelerometer_event_get_acceleration_y(UASAccelerometerEvent* e) __SF_FN_ATTR;
2338-float uas_accelerometer_event_get_acceleration_y(UASAccelerometerEvent* e)
2339-{
2340- return static_cast<TestSensor*>(e)->y;
2341-}
2342-
2343-float uas_accelerometer_event_get_acceleration_z(UASAccelerometerEvent* e) __SF_FN_ATTR;
2344-float uas_accelerometer_event_get_acceleration_z(UASAccelerometerEvent* e)
2345-{
2346- return static_cast<TestSensor*>(e)->z;
2347+UStatus uas_accelerometer_event_get_acceleration_x(UASAccelerometerEvent* e, float* value)
2348+{
2349+ if (!value)
2350+ return U_STATUS_ERROR;
2351+
2352+ *value = static_cast<TestSensor*>(e)->x;
2353+
2354+ return U_STATUS_SUCCESS;
2355+}
2356+
2357+UStatus uas_accelerometer_event_get_acceleration_y(UASAccelerometerEvent* e, float* value)
2358+{
2359+ if (!value)
2360+ return U_STATUS_ERROR;
2361+
2362+ *value = static_cast<TestSensor*>(e)->y;
2363+
2364+ return U_STATUS_SUCCESS;
2365+}
2366+
2367+UStatus uas_accelerometer_event_get_acceleration_z(UASAccelerometerEvent* e, float* value)
2368+{
2369+ if (!value)
2370+ return U_STATUS_ERROR;
2371+
2372+ *value = static_cast<TestSensor*>(e)->z;
2373+
2374+ return U_STATUS_SUCCESS;
2375 }
2376
2377 /***************************************
2378@@ -452,22 +476,34 @@
2379 }
2380
2381 // the next three function make no sense in the API, just return zero
2382-float ua_sensors_proximity_get_min_value(UASensorsProximity*) __SF_FN_ATTR;
2383-float ua_sensors_proximity_get_min_value(UASensorsProximity*)
2384-{
2385- return 0.0;
2386-}
2387-
2388-float ua_sensors_proximity_get_max_value(UASensorsProximity*) __SF_FN_ATTR;
2389-float ua_sensors_proximity_get_max_value(UASensorsProximity*)
2390-{
2391- return 0.0;
2392-}
2393-
2394-float ua_sensors_proximity_get_resolution(UASensorsProximity*) __SF_FN_ATTR;
2395-float ua_sensors_proximity_get_resolution(UASensorsProximity*)
2396-{
2397- return 0.0;
2398+UStatus ua_sensors_proximity_get_min_value(UASensorsProximity*, float* value)
2399+{
2400+ if (!value)
2401+ return U_STATUS_ERROR;
2402+
2403+ *value = 0.f;
2404+
2405+ return U_STATUS_SUCCESS;
2406+}
2407+
2408+UStatus ua_sensors_proximity_get_max_value(UASensorsProximity*, float* value)
2409+{
2410+ if (!value)
2411+ return U_STATUS_ERROR;
2412+
2413+ *value = 0.f;
2414+
2415+ return U_STATUS_SUCCESS;
2416+}
2417+
2418+UStatus ua_sensors_proximity_get_resolution(UASensorsProximity*, float* value)
2419+{
2420+ if (!value)
2421+ return U_STATUS_ERROR;
2422+
2423+ *value = 0.f;
2424+
2425+ return U_STATUS_SUCCESS;
2426 }
2427
2428 void ua_sensors_proximity_set_reading_cb(UASensorsProximity* s, on_proximity_event_cb cb, void* ctx)
2429@@ -516,22 +552,34 @@
2430 return static_cast<TestSensor*>(s)->min_delay;
2431 }
2432
2433-float ua_sensors_light_get_min_value(UASensorsLight* s) __SF_FN_ATTR;
2434-float ua_sensors_light_get_min_value(UASensorsLight* s)
2435-{
2436- return static_cast<TestSensor*>(s)->min_value;
2437-}
2438-
2439-float ua_sensors_light_get_max_value(UASensorsLight* s) __SF_FN_ATTR;
2440-float ua_sensors_light_get_max_value(UASensorsLight* s)
2441-{
2442- return static_cast<TestSensor*>(s)->max_value;
2443-}
2444-
2445-float ua_sensors_light_get_resolution(UASensorsLight* s) __SF_FN_ATTR;
2446-float ua_sensors_light_get_resolution(UASensorsLight* s)
2447-{
2448- return static_cast<TestSensor*>(s)->resolution;
2449+UStatus ua_sensors_light_get_min_value(UASensorsLight* s, float* value)
2450+{
2451+ if (!value)
2452+ return U_STATUS_ERROR;
2453+
2454+ *value = static_cast<TestSensor*>(s)->min_value;
2455+
2456+ return U_STATUS_SUCCESS;
2457+}
2458+
2459+UStatus ua_sensors_light_get_max_value(UASensorsLight* s, float* value)
2460+{
2461+ if (!value)
2462+ return U_STATUS_ERROR;
2463+
2464+ *value = static_cast<TestSensor*>(s)->max_value;
2465+
2466+ return U_STATUS_SUCCESS;
2467+}
2468+
2469+UStatus ua_sensors_light_get_resolution(UASensorsLight* s, float* value)
2470+{
2471+ if (!value)
2472+ return U_STATUS_ERROR;
2473+
2474+ *value = static_cast<TestSensor*>(s)->resolution;
2475+
2476+ return U_STATUS_SUCCESS;
2477 }
2478
2479 void ua_sensors_light_set_reading_cb(UASensorsLight* s, on_light_event_cb cb, void* ctx)
2480@@ -546,8 +594,12 @@
2481 return static_cast<TestSensor*>(e)->timestamp;
2482 }
2483
2484-float uas_light_event_get_light(UASLightEvent* e) __SF_FN_ATTR;
2485-float uas_light_event_get_light(UASLightEvent* e)
2486+UStatus uas_light_event_get_light(UASLightEvent* e, float* value)
2487 {
2488- return static_cast<TestSensor*>(e)->x;
2489+ if (!value)
2490+ return U_STATUS_ERROR;
2491+
2492+ *value = static_cast<TestSensor*>(e)->x;
2493+
2494+ return U_STATUS_SUCCESS;
2495 }
2496
2497=== added directory 'src/ubuntu/touch'
2498=== added file 'src/ubuntu/touch/CMakeLists.txt'
2499--- src/ubuntu/touch/CMakeLists.txt 1970-01-01 00:00:00 +0000
2500+++ src/ubuntu/touch/CMakeLists.txt 2014-05-02 12:23:55 +0000
2501@@ -0,0 +1,64 @@
2502+add_subdirectory(hybris)
2503+
2504+add_library(
2505+ ubuntu_application_api_touch_mirclient MODULE
2506+
2507+ module_version.h
2508+)
2509+
2510+add_library(
2511+ ubuntu_application_api_touch_mirserver MODULE
2512+
2513+ module_version.h
2514+)
2515+
2516+target_link_libraries(
2517+ ubuntu_application_api_touch_mirclient
2518+
2519+ "-Wl,--whole-archive"
2520+ ubuntu_application_api_mirclient
2521+ ubuntu_application_api_mircommon
2522+ ubuntu_application_api_hybris
2523+ ${UBUNTU_APPLICATION_API_LINK_LIBRARIES}
2524+ "-Wl,--no-whole-archive"
2525+ #TODO: Alarms
2526+)
2527+
2528+target_link_libraries(
2529+ ubuntu_application_api_touch_mirserver
2530+
2531+ "-Wl,--whole-archive"
2532+ ubuntu_application_api_mirserver
2533+ ubuntu_application_api_mircommon
2534+ ubuntu_application_api_hybris
2535+ ${UBUNTU_APPLICATION_API_LINK_LIBRARIES}
2536+ "-Wl,--no-whole-archive"
2537+ #TODO: Alarms
2538+)
2539+
2540+set_target_properties(
2541+ ubuntu_application_api_touch_mirclient
2542+ PROPERTIES
2543+ VERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}.${UBUNTU_PLATFORM_API_VERSION_MINOR}.${UBUNTU_PLATFORM_API_VERSION_PATCH}
2544+ SOVERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}
2545+)
2546+
2547+set_target_properties(
2548+ ubuntu_application_api_touch_mirserver
2549+ PROPERTIES
2550+ VERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}.${UBUNTU_PLATFORM_API_VERSION_MINOR}.${UBUNTU_PLATFORM_API_VERSION_PATCH}
2551+ SOVERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}
2552+)
2553+install(
2554+ TARGETS ubuntu_application_api_touch_mirclient
2555+ # this is not a development library to compile against, users should always
2556+ # specify the SONAME; so don't build a *.so
2557+ LIBRARY DESTINATION "${LIB_INSTALL_DIR}" NAMELINK_SKIP
2558+)
2559+
2560+install(
2561+ TARGETS ubuntu_application_api_touch_mirserver
2562+ # this is not a development library to compile against, users should always
2563+ # specify the SONAME; so don't build a *.so
2564+ LIBRARY DESTINATION "${LIB_INSTALL_DIR}" NAMELINK_SKIP
2565+)
2566
2567=== renamed directory 'src/ubuntu/hybris' => 'src/ubuntu/touch/hybris'
2568=== modified file 'src/ubuntu/touch/hybris/CMakeLists.txt'
2569--- src/ubuntu/hybris/CMakeLists.txt 2014-02-12 07:35:37 +0000
2570+++ src/ubuntu/touch/hybris/CMakeLists.txt 2014-05-02 12:23:55 +0000
2571@@ -1,30 +1,27 @@
2572-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11")
2573+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -fPIC")
2574
2575 add_library(
2576- ubuntu_application_api SHARED
2577-
2578- ubuntu_application_api_hybris.cpp
2579+ ubuntu_application_api_hybris STATIC
2580+
2581+ #ubuntu_application_api_hybris.cpp
2582 ubuntu_application_sensors_hybris.cpp
2583 )
2584
2585+include_directories(
2586+ ${CMAKE_BINARY_DIR}/include
2587+)
2588+
2589+target_link_libraries(
2590+ ubuntu_application_api_hybris
2591+
2592+ ${Hybris}
2593+)
2594+
2595 add_library(
2596 ubuntu_platform_hardware_api SHARED
2597 ubuntu_platform_hardware_api.cpp
2598 )
2599
2600-include_directories(
2601- ${CMAKE_BINARY_DIR}/include
2602-)
2603-
2604-target_link_libraries(
2605- ubuntu_application_api
2606-
2607- "-Wl,--whole-archive"
2608- ${UBUNTU_APPLICATION_API_LINK_LIBRARIES}
2609- "-Wl,--no-whole-archive"
2610- ${Hybris}
2611-)
2612-
2613 target_link_libraries(
2614 ubuntu_platform_hardware_api
2615 dl
2616@@ -32,13 +29,6 @@
2617 )
2618
2619 set_target_properties(
2620- ubuntu_application_api
2621- PROPERTIES
2622- VERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}.${UBUNTU_PLATFORM_API_VERSION_MINOR}.${UBUNTU_PLATFORM_API_VERSION_PATCH}
2623- SOVERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}
2624-)
2625-
2626-set_target_properties(
2627 ubuntu_platform_hardware_api
2628 PROPERTIES
2629 VERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}.${UBUNTU_PLATFORM_API_VERSION_MINOR}.${UBUNTU_PLATFORM_API_VERSION_PATCH}
2630@@ -46,13 +36,8 @@
2631 )
2632
2633 install(
2634- TARGETS ubuntu_application_api
2635- ${INSTALL_TARGETS_DEFAULT_ARGS}
2636-)
2637-
2638-install(
2639 TARGETS ubuntu_platform_hardware_api
2640 ${INSTALL_TARGETS_DEFAULT_ARGS}
2641 )
2642
2643-add_subdirectory(tests/)
2644+#add_subdirectory(tests/)
2645
2646=== modified file 'src/ubuntu/touch/hybris/bridge.h'
2647--- src/ubuntu/hybris/bridge.h 2014-02-21 13:07:33 +0000
2648+++ src/ubuntu/touch/hybris/bridge.h 2014-05-02 12:23:55 +0000
2649@@ -53,7 +53,7 @@
2650 static const char* cache = NULL;
2651
2652 if (cache == NULL) {
2653- cache = secure_getenv("UBUNTU_PLATFORM_API_BACKEND");
2654+ cache = secure_getenv("UBUNTU_PLATFORM_API_SENSORS_BACKEND");
2655 if (cache == NULL)
2656 cache = "/system/lib/libubuntu_application_api.so";
2657 }
2658@@ -143,22 +143,6 @@
2659 DLSYM(&f, #symbol); \
2660 return f(_1); }
2661
2662-// pcs attribute (calling convention) is only defined on ARM, avoid warning on
2663-// other platforms
2664-#ifdef __arm__
2665-#define __SF_FN_ATTR __attribute__((pcs("aapcs")))
2666-#else
2667-#define __SF_FN_ATTR
2668-#endif
2669-
2670-#define IMPLEMENT_SF_FUNCTION1(return_type, symbol, arg1) \
2671- return_type symbol(arg1 _1) \
2672- { \
2673- static return_type (*f)(arg1) __SF_FN_ATTR = NULL; \
2674- DLSYM(&f, #symbol); \
2675- return f(_1); }
2676-
2677-
2678 #define IMPLEMENT_VOID_FUNCTION1(symbol, arg1) \
2679 void symbol(arg1 _1) \
2680 { \
2681
2682=== modified file 'src/ubuntu/touch/hybris/tests/CMakeLists.txt'
2683--- src/ubuntu/hybris/tests/CMakeLists.txt 2013-08-17 05:22:31 +0000
2684+++ src/ubuntu/touch/hybris/tests/CMakeLists.txt 2014-05-02 12:23:55 +0000
2685@@ -12,18 +12,18 @@
2686 add_executable(test_android_sensors_api test_sensors_api.cpp)
2687 target_link_libraries(test_android_sensors_api ubuntu_application_api)
2688
2689-add_executable(test_android_ubuntu_session_api test_session_c_api.cpp)
2690-target_link_libraries(test_android_ubuntu_session_api ubuntu_application_api)
2691-
2692 add_executable(test_ubuntu_app_api_location_service test_location_api.cpp)
2693 target_link_libraries(test_ubuntu_app_api_location_service ubuntu_application_api)
2694
2695+add_executable(test_hardware_alarms_api test_alarms_api.cpp)
2696+target_link_libraries(test_hardware_alarms_api ubuntu_platform_hardware_api)
2697+
2698 install(TARGETS
2699 test_android_ubuntu_app_api
2700 test_android_gps_api
2701 test_android_ubuntu_app_api_multiple_surfaces
2702 test_android_sensors_api
2703- test_android_ubuntu_session_api
2704 test_ubuntu_app_api_location_service
2705+ test_hardware_alarms_api
2706 DESTINATION bin
2707 )
2708
2709=== added file 'src/ubuntu/touch/hybris/tests/test_alarms_api.cpp'
2710--- src/ubuntu/touch/hybris/tests/test_alarms_api.cpp 1970-01-01 00:00:00 +0000
2711+++ src/ubuntu/touch/hybris/tests/test_alarms_api.cpp 2014-05-02 12:23:55 +0000
2712@@ -0,0 +1,62 @@
2713+/*
2714+ * Copyright © 2013 Canonical Ltd.
2715+ *
2716+ * This program is free software: you can redistribute it and/or modify
2717+ * it under the terms of the GNU General Public License version 3 as
2718+ * published by the Free Software Foundation.
2719+ *
2720+ * This program is distributed in the hope that it will be useful,
2721+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
2722+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2723+ * GNU General Public License for more details.
2724+ *
2725+ * You should have received a copy of the GNU General Public License
2726+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
2727+ *
2728+ * Authored by: Thomas Voß <thomas.voss@canonicalcom>
2729+ */
2730+
2731+#include <ubuntu/hardware/alarm.h>
2732+
2733+#include <cstdio>
2734+#include <ctime>
2735+
2736+int main(int argc, char** argv)
2737+{
2738+ UHardwareAlarm alarm = u_hardware_alarm_create();
2739+
2740+ if (!alarm)
2741+ {
2742+ printf("Error creating handle to hardware alarms.\n");
2743+ return 1;
2744+ }
2745+
2746+ // Alarm in two seconds.
2747+ timespec ts { 2, 0 };
2748+
2749+
2750+ UStatus rc = u_hardware_alarm_set_relative_to_with_behavior(
2751+ alarm,
2752+ U_HARDWARE_ALARM_TIME_REFERENCE_NOW,
2753+ U_HARDWARE_ALARM_SLEEP_BEHAVIOR_WAKEUP_DEVICE,
2754+ &ts);
2755+
2756+ if (rc != U_STATUS_SUCCESS)
2757+ {
2758+ printf("Problem setting hardware alarm.\n");
2759+ return 1;
2760+ }
2761+
2762+ UHardwareAlarmWaitResult wait_result;
2763+ rc = u_hardware_alarm_wait_for_next_alarm(alarm, &wait_result);
2764+
2765+ if (rc != U_STATUS_SUCCESS)
2766+ {
2767+ printf("Problem waiting for hardware alarm to go off.\n");
2768+ return 1;
2769+ }
2770+
2771+ printf("Successfully created and waited for a hw alarm.\n");
2772+
2773+ return 0;
2774+}
2775
2776=== modified file 'src/ubuntu/touch/hybris/tests/test_sensors_api.cpp'
2777--- src/ubuntu/hybris/tests/test_sensors_api.cpp 2013-12-03 07:10:43 +0000
2778+++ src/ubuntu/touch/hybris/tests/test_sensors_api.cpp 2014-05-02 12:23:55 +0000
2779@@ -28,11 +28,15 @@
2780
2781 void on_new_accelerometer_event(UASAccelerometerEvent* event, void* context)
2782 {
2783+ float x; uas_accelerometer_event_get_acceleration_x(event, &x);
2784+ float y; uas_accelerometer_event_get_acceleration_y(event, &y);
2785+ float z; uas_accelerometer_event_get_acceleration_z(event, &z);
2786+
2787 printf("%s \n", __PRETTY_FUNCTION__);
2788 printf("\ttime: %" PRIu64 "\n", uas_accelerometer_event_get_timestamp(event));
2789- printf("\tx: %f\n", uas_accelerometer_event_get_acceleration_x(event));
2790- printf("\ty: %f\n", uas_accelerometer_event_get_acceleration_y(event));
2791- printf("\tz: %f\n", uas_accelerometer_event_get_acceleration_z(event));
2792+ printf("\tx: %f\n", x);
2793+ printf("\ty: %f\n", y);
2794+ printf("\tz: %f\n", z);
2795 }
2796
2797 void on_new_proximity_event(UASProximityEvent* event, void* context)
2798@@ -57,9 +61,11 @@
2799
2800 void on_new_light_event(UASLightEvent* event, void* context)
2801 {
2802+ float light = -1.f; uas_light_event_get_light(event, &light);
2803+
2804 printf("%s \n", __PRETTY_FUNCTION__);
2805 printf("\ttime: %" PRIu64 "\n", uas_light_event_get_timestamp(event));
2806- printf("\tlight: %f\n", uas_light_event_get_light(event));
2807+ printf("\tlight: %f\n", light);
2808 }
2809
2810 int main(int argc, char** argv)
2811
2812=== modified file 'src/ubuntu/touch/hybris/ubuntu_application_sensors_hybris.cpp'
2813--- src/ubuntu/hybris/ubuntu_application_sensors_hybris.cpp 2014-02-05 09:26:23 +0000
2814+++ src/ubuntu/touch/hybris/ubuntu_application_sensors_hybris.cpp 2014-05-02 12:23:55 +0000
2815@@ -30,25 +30,25 @@
2816 IMPLEMENT_FUNCTION1(UStatus, ua_sensors_accelerometer_enable, UASensorsAccelerometer*);
2817 IMPLEMENT_FUNCTION1(UStatus, ua_sensors_accelerometer_disable, UASensorsAccelerometer*);
2818 IMPLEMENT_FUNCTION1(uint32_t, ua_sensors_accelerometer_get_min_delay, UASensorsAccelerometer*);
2819-IMPLEMENT_SF_FUNCTION1(float, ua_sensors_accelerometer_get_min_value, UASensorsAccelerometer*);
2820-IMPLEMENT_SF_FUNCTION1(float, ua_sensors_accelerometer_get_max_value, UASensorsAccelerometer*);
2821-IMPLEMENT_SF_FUNCTION1(float, ua_sensors_accelerometer_get_resolution, UASensorsAccelerometer*);
2822+IMPLEMENT_FUNCTION2(UStatus, ua_sensors_accelerometer_get_min_value, UASensorsAccelerometer*, float*);
2823+IMPLEMENT_FUNCTION2(UStatus, ua_sensors_accelerometer_get_max_value, UASensorsAccelerometer*, float*);
2824+IMPLEMENT_FUNCTION2(UStatus, ua_sensors_accelerometer_get_resolution, UASensorsAccelerometer*, float*);
2825 IMPLEMENT_VOID_FUNCTION3(ua_sensors_accelerometer_set_reading_cb, UASensorsAccelerometer*, on_accelerometer_event_cb, void*);
2826
2827 // Acceleration Sensor Event
2828 IMPLEMENT_FUNCTION1(uint64_t, uas_accelerometer_event_get_timestamp, UASAccelerometerEvent*);
2829-IMPLEMENT_SF_FUNCTION1(float, uas_accelerometer_event_get_acceleration_x, UASAccelerometerEvent*);
2830-IMPLEMENT_SF_FUNCTION1(float, uas_accelerometer_event_get_acceleration_y, UASAccelerometerEvent*);
2831-IMPLEMENT_SF_FUNCTION1(float, uas_accelerometer_event_get_acceleration_z, UASAccelerometerEvent*);
2832+IMPLEMENT_FUNCTION2(UStatus, uas_accelerometer_event_get_acceleration_x, UASAccelerometerEvent*, float*);
2833+IMPLEMENT_FUNCTION2(UStatus, uas_accelerometer_event_get_acceleration_y, UASAccelerometerEvent*, float*);
2834+IMPLEMENT_FUNCTION2(UStatus, uas_accelerometer_event_get_acceleration_z, UASAccelerometerEvent*, float*);
2835
2836 // Proximity Sensor
2837 IMPLEMENT_CTOR0(UASensorsProximity*, ua_sensors_proximity_new);
2838 IMPLEMENT_FUNCTION1(UStatus, ua_sensors_proximity_enable, UASensorsProximity*);
2839 IMPLEMENT_FUNCTION1(UStatus, ua_sensors_proximity_disable, UASensorsProximity*);
2840 IMPLEMENT_FUNCTION1(uint32_t, ua_sensors_proximity_get_min_delay, UASensorsProximity*);
2841-IMPLEMENT_SF_FUNCTION1(float, ua_sensors_proximity_get_min_value, UASensorsProximity*);
2842-IMPLEMENT_SF_FUNCTION1(float, ua_sensors_proximity_get_max_value, UASensorsProximity*);
2843-IMPLEMENT_SF_FUNCTION1(float, ua_sensors_proximity_get_resolution, UASensorsProximity*);
2844+IMPLEMENT_FUNCTION2(UStatus, ua_sensors_proximity_get_min_value, UASensorsProximity*, float*);
2845+IMPLEMENT_FUNCTION2(UStatus, ua_sensors_proximity_get_max_value, UASensorsProximity*, float*);
2846+IMPLEMENT_FUNCTION2(UStatus, ua_sensors_proximity_get_resolution, UASensorsProximity*, float*);
2847 IMPLEMENT_VOID_FUNCTION3(ua_sensors_proximity_set_reading_cb, UASensorsProximity*, on_proximity_event_cb, void*);
2848
2849 // Proximity Sensor Event
2850@@ -60,11 +60,11 @@
2851 IMPLEMENT_FUNCTION1(UStatus, ua_sensors_light_enable, UASensorsLight*);
2852 IMPLEMENT_FUNCTION1(UStatus, ua_sensors_light_disable, UASensorsLight*);
2853 IMPLEMENT_FUNCTION1(uint32_t, ua_sensors_light_get_min_delay, UASensorsLight*);
2854-IMPLEMENT_SF_FUNCTION1(float, ua_sensors_light_get_min_value, UASensorsLight*);
2855-IMPLEMENT_SF_FUNCTION1(float, ua_sensors_light_get_max_value, UASensorsLight*);
2856-IMPLEMENT_SF_FUNCTION1(float, ua_sensors_light_get_resolution, UASensorsLight*);
2857+IMPLEMENT_FUNCTION2(UStatus, ua_sensors_light_get_min_value, UASensorsLight*, float*);
2858+IMPLEMENT_FUNCTION2(UStatus, ua_sensors_light_get_max_value, UASensorsLight*, float*);
2859+IMPLEMENT_FUNCTION2(UStatus, ua_sensors_light_get_resolution, UASensorsLight*, float*);
2860 IMPLEMENT_VOID_FUNCTION3(ua_sensors_light_set_reading_cb, UASensorsLight*, on_light_event_cb, void*);
2861
2862 // Ambient Light Sensor Event
2863 IMPLEMENT_FUNCTION1(uint64_t, uas_light_event_get_timestamp, UASLightEvent*);
2864-IMPLEMENT_SF_FUNCTION1(float, uas_light_event_get_light, UASLightEvent*);
2865+IMPLEMENT_FUNCTION2(UStatus, uas_light_event_get_light, UASLightEvent*, float*);
2866
2867=== modified file 'src/ubuntu/touch/hybris/ubuntu_platform_hardware_api.cpp'
2868--- src/ubuntu/hybris/ubuntu_platform_hardware_api.cpp 2013-06-13 08:37:52 +0000
2869+++ src/ubuntu/touch/hybris/ubuntu_platform_hardware_api.cpp 2014-05-02 12:23:55 +0000
2870@@ -18,6 +18,7 @@
2871 */
2872
2873 // C APIs
2874+#include <ubuntu/hardware/alarm.h>
2875 #include <ubuntu/hardware/gps.h>
2876
2877 #include "bridge.h"
2878@@ -76,3 +77,37 @@
2879 UHardwareGps,
2880 char*,
2881 int);
2882+
2883+/****************** HW ALARMS API ******************/
2884+
2885+IMPLEMENT_CTOR0(
2886+ UHardwareAlarm,
2887+ u_hardware_alarm_create);
2888+
2889+IMPLEMENT_VOID_FUNCTION1(
2890+ u_hardware_alarm_ref,
2891+ UHardwareAlarm);
2892+
2893+IMPLEMENT_VOID_FUNCTION1(
2894+ u_hardware_alarm_unref,
2895+ UHardwareAlarm);
2896+
2897+IMPLEMENT_FUNCTION2(
2898+ UStatus,
2899+ u_hardware_alarm_set_timezone,
2900+ UHardwareAlarm,
2901+ const struct timezone*);
2902+
2903+IMPLEMENT_FUNCTION4(
2904+ UStatus,
2905+ u_hardware_alarm_set_relative_to_with_behavior,
2906+ UHardwareAlarm,
2907+ UHardwareAlarmTimeReference,
2908+ UHardwareAlarmSleepBehavior,
2909+ const struct timespec*);
2910+
2911+IMPLEMENT_FUNCTION2(
2912+ UStatus,
2913+ u_hardware_alarm_wait_for_next_alarm,
2914+ UHardwareAlarm,
2915+ UHardwareAlarmWaitResult*);
2916
2917=== modified file 'tests/test_ubuntu_application_sensors.cpp'
2918--- tests/test_ubuntu_application_sensors.cpp 2014-02-07 12:24:32 +0000
2919+++ tests/test_ubuntu_application_sensors.cpp 2014-05-02 12:23:55 +0000
2920@@ -65,7 +65,7 @@
2921 abort();
2922 }
2923 setenv("UBUNTU_PLATFORM_API_SENSOR_TEST", data_file, 1);
2924- setenv("UBUNTU_PLATFORM_API_BACKEND", "libubuntu_application_api_test.so.1", 1);
2925+ setenv("UBUNTU_PLATFORM_API_SENSORS_BACKEND", "libubuntu_application_api_test.so.1", 1);
2926
2927 // ensure the queue is clear
2928 while (events.size() > 0)
2929@@ -110,9 +110,14 @@
2930
2931 UASensorsAccelerometer *s = ua_sensors_accelerometer_new();
2932 EXPECT_TRUE(s != NULL);
2933- EXPECT_FLOAT_EQ(0.5, ua_sensors_accelerometer_get_min_value(s));
2934- EXPECT_FLOAT_EQ(1000.0, ua_sensors_accelerometer_get_max_value(s));
2935- EXPECT_FLOAT_EQ(0.1, ua_sensors_accelerometer_get_resolution(s));
2936+
2937+ float min = 0.f; ua_sensors_accelerometer_get_min_value(s, &min);
2938+ float max = 0.f; ua_sensors_accelerometer_get_max_value(s, &max);
2939+ float res = 0.f; ua_sensors_accelerometer_get_resolution(s, &res);
2940+
2941+ EXPECT_FLOAT_EQ(0.5, min);
2942+ EXPECT_FLOAT_EQ(1000.0, max);
2943+ EXPECT_FLOAT_EQ(0.1, res);
2944 })
2945
2946 TESTP_F(SimBackendTest, CreateLight, {
2947@@ -122,9 +127,14 @@
2948
2949 UASensorsLight *s = ua_sensors_light_new();
2950 EXPECT_TRUE(s != NULL);
2951- EXPECT_FLOAT_EQ(0.0, ua_sensors_light_get_min_value(s));
2952- EXPECT_FLOAT_EQ(10.0, ua_sensors_light_get_max_value(s));
2953- EXPECT_FLOAT_EQ(0.5, ua_sensors_light_get_resolution(s));
2954+
2955+ float min = 0.f; ua_sensors_light_get_min_value(s, &min);
2956+ float max = 0.f; ua_sensors_light_get_max_value(s, &max);
2957+ float res = 0.f; ua_sensors_light_get_resolution(s, &res);
2958+
2959+ EXPECT_FLOAT_EQ(0.0, min);
2960+ EXPECT_FLOAT_EQ(10.0, max);
2961+ EXPECT_FLOAT_EQ(0.5, res);
2962 })
2963
2964 TESTP_F(SimBackendTest, ProximityEvents, {
2965@@ -191,8 +201,10 @@
2966
2967 ua_sensors_light_set_reading_cb(s,
2968 [](UASLightEvent* ev, void* ctx) {
2969+ float light = -1.f;
2970+ uas_light_event_get_light(ev, &light);
2971 events.push({uas_light_event_get_timestamp(ev),
2972- uas_light_event_get_light(ev), .0, .0,
2973+ light, .0, .0,
2974 (UASProximityDistance) 0, ctx});
2975 }, NULL);
2976
2977@@ -229,10 +241,14 @@
2978
2979 ua_sensors_accelerometer_set_reading_cb(s,
2980 [](UASAccelerometerEvent* ev, void* ctx) {
2981+ float x; uas_accelerometer_event_get_acceleration_x(ev, &x);
2982+ float y; uas_accelerometer_event_get_acceleration_y(ev, &y);
2983+ float z; uas_accelerometer_event_get_acceleration_z(ev, &z);
2984+
2985 events.push({uas_accelerometer_event_get_timestamp(ev),
2986- uas_accelerometer_event_get_acceleration_x(ev),
2987- uas_accelerometer_event_get_acceleration_y(ev),
2988- uas_accelerometer_event_get_acceleration_z(ev),
2989+ x,
2990+ y,
2991+ z,
2992 (UASProximityDistance) 0, ctx});
2993 }, NULL);
2994
2995@@ -274,8 +290,12 @@
2996 // calling its functions should not crash; we can't assert much about
2997 // their actual values, though
2998 ua_sensors_proximity_enable(s);
2999- EXPECT_LE(ua_sensors_proximity_get_min_value(s), ua_sensors_proximity_get_max_value(s));
3000- ua_sensors_proximity_get_resolution(s);
3001+ float min; ua_sensors_proximity_get_min_value(s, &min);
3002+ float max; ua_sensors_proximity_get_max_value(s, &max);
3003+
3004+ EXPECT_LE(min, max);
3005+
3006+ float res; ua_sensors_proximity_get_resolution(s, &res);
3007 ua_sensors_proximity_disable(s);
3008 } else {
3009 cerr << "no proximity sensor on this hardware\n";
3010@@ -291,8 +311,12 @@
3011 // calling its functions should not crash; we can't assert much about
3012 // their actual values, though
3013 ua_sensors_accelerometer_enable(s);
3014- EXPECT_LE(ua_sensors_accelerometer_get_min_value(s), ua_sensors_accelerometer_get_max_value(s));
3015- ua_sensors_accelerometer_get_resolution(s);
3016+ float min; ua_sensors_accelerometer_get_min_value(s, &min);
3017+ float max; ua_sensors_accelerometer_get_max_value(s, &max);
3018+
3019+ EXPECT_LE(min, max);
3020+
3021+ float res; ua_sensors_accelerometer_get_resolution(s, &res);
3022 ua_sensors_accelerometer_disable(s);
3023 } else {
3024 cerr << "no accelerometer sensor on this hardware\n";
3025@@ -308,8 +332,12 @@
3026 // calling its functions should not crash; we can't assert much about
3027 // their actual values, though
3028 ua_sensors_light_enable(s);
3029- EXPECT_LE(ua_sensors_light_get_min_value(s), ua_sensors_light_get_max_value(s));
3030- ua_sensors_light_get_resolution(s);
3031+ float min; ua_sensors_light_get_min_value(s, &min);
3032+ float max; ua_sensors_light_get_max_value(s, &max);
3033+
3034+ EXPECT_LE(min, max);
3035+
3036+ float res; ua_sensors_light_get_resolution(s, &res);
3037 ua_sensors_light_disable(s);
3038 } else {
3039 cerr << "no light sensor on this hardware\n";

Subscribers

People subscribed via source and target branches