diff options
author | Yunmi Ha <yunmi.ha@samsung.com> | 2021-04-26 17:19:16 +0900 |
---|---|---|
committer | Yunmi Ha <yunmi.ha@samsung.com> | 2021-04-26 17:19:16 +0900 |
commit | 0813c0b54e38beb0f84d1b5d1f0a455bdb12474f (patch) | |
tree | 5909fe03b36aea472a8894a8b2e22725e7295cd9 | |
parent | 6f0d90cea3cef30da5de4dcb1c58280a881fdc15 (diff) | |
download | sensor-0813c0b54e38beb0f84d1b5d1f0a455bdb12474f.tar.gz sensor-0813c0b54e38beb0f84d1b5d1f0a455bdb12474f.tar.bz2 sensor-0813c0b54e38beb0f84d1b5d1f0a455bdb12474f.zip |
Add get_attribute interface
Change-Id: I588887f1fdc17dbd079d97d646b1b88b932a940a
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
-rw-r--r-- | include/hal-sensor-types.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hal-sensor-types.h b/include/hal-sensor-types.h index fcba0cd..d7b78d1 100644 --- a/include/hal-sensor-types.h +++ b/include/hal-sensor-types.h @@ -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; } }; |