Add sensor handle attribute 92/286892/9 accepted/tizen/unified/20230131.162126
authorTaeminYeom <taemin.yeom@samsung.com>
Mon, 16 Jan 2023 09:00:54 +0000 (18:00 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 27 Jan 2023 08:55:24 +0000 (08:55 +0000)
commit61dc1c262c1c0233fa79a17066dbef5a2ebce045
tree665c94ee384d53f1fd912654edef2a583b8f4e2f
parente7e70e9f57765cfc35fe0d84311f5526efada850
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