Add sensor handle attribute 87/287387/1 accepted/tizen/7.0/unified/20230131.162857
authorTaeminYeom <taemin.yeom@samsung.com>
Mon, 16 Jan 2023 09:00:54 +0000 (18:00 +0900)
committerTaeminYeom <taemin.yeom@samsung.com>
Fri, 27 Jan 2023 10:25:18 +0000 (19:25 +0900)
commit756cc42d8e01307ce3b978881a3d142269736611
tree665c94ee384d53f1fd912654edef2a583b8f4e2f
parent39ff0cbec9dff091a49718340b290af23027e0fa
Add sensor handle attribute

Sensor handle attribute is diffrent with sensor listener attribute.
Listener attribute is depending on each listener, not sensor.
But handle attribute can affect all listeners connecting the sensor.

When the client sends socket command "CMD_MANAGER_SET_ATTR_INT" or
"CMD_MANAGER_GET_ATTR_INT", the daemon brings and handle it.

Added libsensor API
-sensord_set_attribute_int
-sensord_get_attribute_int

Above two libsensor APIs were used to set/get listener attribute,
but now they are changed to set/get sensor handle attribute.
And sensor listener attribute setter and getter are
"sensord_listener_set/get_attribute_int".
It was patched in
commit 07725926e300 {"listener: change the names of attribute libsensor API"}

Change-Id: I4a62497b65262751275fb1f00c8d4df806d5ec71
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
include/sensor_internal.h
src/client/sensor_internal.cpp
src/client/sensor_manager.cpp
src/client/sensor_manager.h
src/server/server_channel_handler.cpp
src/server/server_channel_handler.h
src/shared/command_types.h