From 0813c0b54e38beb0f84d1b5d1f0a455bdb12474f Mon Sep 17 00:00:00 2001 From: Yunmi Ha Date: Mon, 26 Apr 2021 17:19:16 +0900 Subject: Add get_attribute interface Change-Id: I588887f1fdc17dbd079d97d646b1b88b932a940a Signed-off-by: Yunmi Ha --- include/hal-sensor-types.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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; } }; -- cgit v1.2.3