Add more sensor types 43/253743/2 accepted/tizen/unified/20210218.042212 submit/tizen/20210217.062004
authorBoram Bae <boram21.bae@samsung.com>
Wed, 17 Feb 2021 06:55:54 +0000 (15:55 +0900)
committerBoram Bae <boram21.bae@samsung.com>
Wed, 17 Feb 2021 06:59:18 +0000 (15:59 +0900)
* Change type from sensor_device_type to int

Change-Id: I941b0d97ee96b80dede3dede362cf829fca957b6
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
include/hal-sensor-types.h

index c805fc5..fcba0cd 100644 (file)
@@ -87,6 +87,11 @@ typedef enum {
   SENSOR_DEVICE_EXERCISE_STEPPER,
 
   SENSOR_DEVICE_DATA_JOURNAL = 0x500,
+  SENSOR_DEVICE_MOTION_SENSOR,
+  SENSOR_DEVICE_FAKE,
+  SENSOR_DEVICE_TAP_SENSOR,
+  SENSOR_DEVICE_COLOR_SENSOR,
+  SENSOR_DEVICE_WIFI_MOTION_DETECTOR,
 
   SENSOR_DEVICE_FUSION = 0x900,
   SENSOR_DEVICE_AUTO_ROTATION,
@@ -158,7 +163,7 @@ typedef enum {
 typedef struct sensor_info_t {
   uint32_t id;
   const char *name;
-  sensor_device_type type;
+  int type; // sensor_device_type
   unsigned int event_type;  // for Internal API
   const char *model_name;
   const char *vendor;