Add sensor handle attribute API in client_dummy 15/289315/2 accepted/tizen/unified/20230307.101615
authorTaeminYeom <taemin.yeom@samsung.com>
Mon, 6 Mar 2023 08:03:34 +0000 (17:03 +0900)
committerTaeminYeom <taemin.yeom@samsung.com>
Mon, 6 Mar 2023 08:15:03 +0000 (17:15 +0900)
In commit 61dc1c262c1c ("Add sensor handle attribute"),
new libsensor APIs were added but not added in client_dummy.
For supporting TV profile, it is needed.

Added libsensor API
-sensord_set_attribute_int
-sensord_get_attribute_int

Change-Id: Ib1b3bdac89f38b7ad01256734d93b51d2973cfda
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
src/client-dummy/client_dummy.cpp

index 0d157e8..9dd527e 100644 (file)
@@ -218,6 +218,16 @@ API int sensord_listener_get_attribute_str(int handle, int attribute, char **val
        return OP_ERROR;
 }
 
+API int sensord_set_attribute_int(sensor_t sensor, int attribute, int value)
+{
+       return OP_ERROR;
+}
+
+API int sensord_get_attribute_int(sensor_t sensor, int attribute, int* value)
+{
+       return OP_ERROR;
+}
+
 API bool sensord_send_sensorhub_data(int handle, const char *data, int data_len)
 {
        return false;