projects
/
platform
/
hal
/
api
/
sensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6f0d90c
)
Add get_attribute interface
60/257460/1
author
Yunmi Ha
<yunmi.ha@samsung.com>
Mon, 26 Apr 2021 08:19:16 +0000
(17:19 +0900)
committer
Yunmi 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
patch
|
blob
|
history
diff --git
a/include/hal-sensor-types.h
b/include/hal-sensor-types.h
index
fcba0cd
..
d7b78d1
100644
(file)
--- 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; }
};