Use class sensor_device moved from hal-api-sensor 85/316285/10
authorSangYoun Kwak <sy.kwak@samsung.com>
Wed, 11 Dec 2024 09:06:55 +0000 (18:06 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Fri, 10 Jan 2025 06:50:57 +0000 (15:50 +0900)
commit18178ba8009c4941867a516a12e80946cd8eaba5
treee8602252e77ec0f0b7e5a110dcd08927bdd4dc82
parent4c24587d1b190cfbb9dda84321a0ac9696bbba91
Use class sensor_device moved from hal-api-sensor

Since the usage of the hal-api-sensor is changed, sensord should be
changed according to the change of hal-pai-sensor.
Below are change of hal-api-sensor:
 * No C++ class in the header file
 * Sensor device creation function does not return sensor_device object
   but a unique ID for that sensor device object in the hal backend.
 * All methods of sensor_device is implemented as a separated C
   functions, which has same name as the original method name but has a
   prefix "hal_sensor". Also those functions should be called with
   sensor ID which is passed from creation function to distinghush
   sensor devices.

According to those changes, sensord is also changed:
 * Create a sensor_device compatible class to emulate the original
   sensor_device class.
 * Some minor changes according to the removal of some typedefs.

Change-Id: Ia1892d87d578a720ad63e228dedb5a0d58f91037
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
include/physical_sensor.h
include/sensor_device.h [new file with mode: 0644]
src/server/physical_sensor_handler.h
src/server/sensor_device.cpp [new file with mode: 0644]
src/server/sensor_loader.cpp
src/server/sensor_loader.h