Add get_attribute interface 60/257460/1
authorYunmi Ha <yunmi.ha@samsung.com>
Mon, 26 Apr 2021 08:19:16 +0000 (17:19 +0900)
committerYunmi Ha <yunmi.ha@samsung.com>
Mon, 26 Apr 2021 08:19:16 +0000 (17:19 +0900)
Change-Id: I588887f1fdc17dbd079d97d646b1b88b932a940a
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
include/hal-sensor-types.h

index fcba0cd..d7b78d1 100644 (file)
@@ -570,6 +570,15 @@ class sensor_device {
                                  int len) {
     return true;
   }
+  virtual bool get_attribute_int(uint32_t id, int32_t attribute,
+                                 int32_t *value) {
+    return true;
+  }
+  virtual bool set_attribute_str(uint32_t id, int32_t attribute, char **value,
+                                 int *len) {
+    return true;
+  }
+
   virtual bool flush(uint32_t id) { return true; }
 };