Change C++ class to C structure of functions for sensor devices 00/317100/7 accepted/tizen_9.0_unified tizen_9.0 accepted/tizen/9.0/unified/20250116.154259
authorSangYoun Kwak <sy.kwak@samsung.com>
Tue, 24 Dec 2024 07:14:48 +0000 (16:14 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Fri, 10 Jan 2025 06:49:02 +0000 (15:49 +0900)
commit2486b0e83068535cb05bc51e1fc3c4ebfd5b43e1
tree7992e493c72a07cd55cea0f7937707fec12b71d5
parente3607cce2e4820da3ae18d943e3f93b515a2f969
Change C++ class to C structure of functions for sensor devices

The hal interface between backend and api is changed to use C functions
rather than giving C++ object directly.
To accomplish that, codes are changed as below:
 * Functions for api calls are added
 * Device id is added to distinguish between the target sensor devices.
   Device id is required since it is hard to know which device should be
   used for a random api call.

Change-Id: Iaf474e4a7dfcb596995d95fb3bd96a25444d7c34
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
24 files changed:
src/accel/accel_device.cpp
src/accel/accel_device.h
src/geomag/geomag_device.cpp
src/geomag/geomag_device.h
src/gyro/gyro_device.cpp
src/gyro/gyro_device.h
src/gyro_uncal/gyro_uncal_device.cpp
src/gyro_uncal/gyro_uncal_device.h
src/hal-backend-sensor.cpp
src/hrm/hrm_device.cpp
src/hrm/hrm_device.h
src/light/light_device.cpp
src/light/light_device.h
src/pressure/pressure_device.cpp
src/pressure/pressure_device.h
src/proxi/proxi_device.cpp
src/proxi/proxi_device.h
src/sensor_device.h [new file with mode: 0644]
src/sensorhub/pedometer.cpp
src/sensorhub/sensorhub.cpp
src/sensorhub/sensorhub.h
src/sensorhub/sensorhub_sensor.h
src/ultraviolet/uv_device.cpp
src/ultraviolet/uv_device.h