Restructuring sensord package 16/50416/2
authorRamasamy <ram.kannan@samsung.com>
Wed, 28 Oct 2015 11:07:49 +0000 (20:07 +0900)
committerRamasamy <ram.kannan@samsung.com>
Thu, 29 Oct 2015 00:41:27 +0000 (09:41 +0900)
- Renaming, moving and restructuring files logically

Change-Id: Ifec6471c36be4669dbd90c1f1c0fe714a6267f5b

290 files changed:
src/server/cclient_info_manager.cpp [moved from src/shared/cclient_info_manager.cpp with 100% similarity]
src/server/cclient_info_manager.h [moved from src/shared/cclient_info_manager.h with 100% similarity]
src/server/cclient_sensor_record.cpp [moved from src/shared/cclient_sensor_record.cpp with 100% similarity]
src/server/cclient_sensor_record.h [moved from src/shared/cclient_sensor_record.h with 100% similarity]
src/server/cconfig.cpp [moved from src/shared/cconfig.cpp with 100% similarity]
src/server/cconfig.h [moved from src/shared/cconfig.h with 100% similarity]
src/server/cplugin_info_list.cpp [moved from src/shared/cplugin_info_list.cpp with 100% similarity]
src/server/cplugin_info_list.h [moved from src/shared/cplugin_info_list.h with 100% similarity]
src/server/csensor_event_dispatcher.cpp [moved from src/shared/csensor_event_dispatcher.cpp with 100% similarity]
src/server/csensor_event_dispatcher.h [moved from src/shared/csensor_event_dispatcher.h with 100% similarity]
src/server/csensor_event_queue.cpp [moved from src/shared/csensor_event_queue.cpp with 100% similarity]
src/server/csensor_event_queue.h [moved from src/shared/csensor_event_queue.h with 100% similarity]
src/server/csensor_usage.cpp [moved from src/shared/csensor_usage.cpp with 100% similarity]
src/server/csensor_usage.h [moved from src/shared/csensor_usage.h with 100% similarity]
src/server/cvirtual_sensor_config.cpp [moved from src/shared/cvirtual_sensor_config.cpp with 100% similarity]
src/server/cvirtual_sensor_config.h [moved from src/shared/cvirtual_sensor_config.h with 100% similarity]
src/server/physical_sensor.cpp [moved from src/shared/physical_sensor.cpp with 100% similarity]
src/server/physical_sensor.h [moved from src/shared/physical_sensor.h with 100% similarity]
src/server/plugins/accel/CMakeLists.txt [moved from src/plugins/accel/CMakeLists.txt with 100% similarity]
src/server/plugins/accel/accel_sensor.cpp [moved from src/plugins/accel/accel_sensor.cpp with 100% similarity]
src/server/plugins/accel/accel_sensor.h [moved from src/plugins/accel/accel_sensor.h with 100% similarity]
src/server/plugins/auto_rotation/CMakeLists.txt [moved from src/plugins/auto_rotation/CMakeLists.txt with 100% similarity]
src/server/plugins/auto_rotation/auto_rotation_alg.cpp [moved from src/plugins/auto_rotation/auto_rotation_alg.cpp with 100% similarity]
src/server/plugins/auto_rotation/auto_rotation_alg.h [moved from src/plugins/auto_rotation/auto_rotation_alg.h with 100% similarity]
src/server/plugins/auto_rotation/auto_rotation_alg_emul.cpp [moved from src/plugins/auto_rotation/auto_rotation_alg_emul.cpp with 100% similarity]
src/server/plugins/auto_rotation/auto_rotation_alg_emul.h [moved from src/plugins/auto_rotation/auto_rotation_alg_emul.h with 100% similarity]
src/server/plugins/auto_rotation/auto_rotation_sensor.cpp [moved from src/plugins/auto_rotation/auto_rotation_sensor.cpp with 100% similarity]
src/server/plugins/auto_rotation/auto_rotation_sensor.h [moved from src/plugins/auto_rotation/auto_rotation_sensor.h with 100% similarity]
src/server/plugins/bio_led_red/CMakeLists.txt [moved from src/plugins/bio_led_red/CMakeLists.txt with 100% similarity]
src/server/plugins/bio_led_red/bio_led_red_sensor.cpp [moved from src/plugins/bio_led_red/bio_led_red_sensor.cpp with 100% similarity]
src/server/plugins/bio_led_red/bio_led_red_sensor.h [moved from src/plugins/bio_led_red/bio_led_red_sensor.h with 100% similarity]
src/server/plugins/fusion/CMakeLists.txt [moved from src/plugins/fusion/CMakeLists.txt with 100% similarity]
src/server/plugins/fusion/fusion_sensor.cpp [moved from src/plugins/fusion/fusion_sensor.cpp with 100% similarity]
src/server/plugins/fusion/fusion_sensor.h [moved from src/plugins/fusion/fusion_sensor.h with 100% similarity]
src/server/plugins/fusion/hardware_fusion_sensor.html [moved from src/plugins/fusion/hardware_fusion_sensor.html with 100% similarity]
src/server/plugins/geo/CMakeLists.txt [moved from src/plugins/geo/CMakeLists.txt with 100% similarity]
src/server/plugins/geo/geo_sensor.cpp [moved from src/plugins/geo/geo_sensor.cpp with 100% similarity]
src/server/plugins/geo/geo_sensor.h [moved from src/plugins/geo/geo_sensor.h with 100% similarity]
src/server/plugins/gravity/CMakeLists.txt [moved from src/plugins/gravity/CMakeLists.txt with 100% similarity]
src/server/plugins/gravity/gravity_sensor.cpp [moved from src/plugins/gravity/gravity_sensor.cpp with 100% similarity]
src/server/plugins/gravity/gravity_sensor.h [moved from src/plugins/gravity/gravity_sensor.h with 100% similarity]
src/server/plugins/gyro/CMakeLists.txt [moved from src/plugins/gyro/CMakeLists.txt with 100% similarity]
src/server/plugins/gyro/gyro_sensor.cpp [moved from src/plugins/gyro/gyro_sensor.cpp with 100% similarity]
src/server/plugins/gyro/gyro_sensor.h [moved from src/plugins/gyro/gyro_sensor.h with 100% similarity]
src/server/plugins/light/CMakeLists.txt [moved from src/plugins/light/CMakeLists.txt with 100% similarity]
src/server/plugins/light/light_sensor.cpp [moved from src/plugins/light/light_sensor.cpp with 100% similarity]
src/server/plugins/light/light_sensor.h [moved from src/plugins/light/light_sensor.h with 100% similarity]
src/server/plugins/linear_accel/CMakeLists.txt [moved from src/plugins/linear_accel/CMakeLists.txt with 100% similarity]
src/server/plugins/linear_accel/linear_accel_sensor.cpp [moved from src/plugins/linear_accel/linear_accel_sensor.cpp with 100% similarity]
src/server/plugins/linear_accel/linear_accel_sensor.h [moved from src/plugins/linear_accel/linear_accel_sensor.h with 100% similarity]
src/server/plugins/orientation/CMakeLists.txt [moved from src/plugins/orientation/CMakeLists.txt with 100% similarity]
src/server/plugins/orientation/orientation_sensor.cpp [moved from src/plugins/orientation/orientation_sensor.cpp with 100% similarity]
src/server/plugins/orientation/orientation_sensor.h [moved from src/plugins/orientation/orientation_sensor.h with 100% similarity]
src/server/plugins/pressure/CMakeLists.txt [moved from src/plugins/pressure/CMakeLists.txt with 100% similarity]
src/server/plugins/pressure/pressure_sensor.cpp [moved from src/plugins/pressure/pressure_sensor.cpp with 100% similarity]
src/server/plugins/pressure/pressure_sensor.h [moved from src/plugins/pressure/pressure_sensor.h with 100% similarity]
src/server/plugins/proxi/CMakeLists.txt [moved from src/plugins/proxi/CMakeLists.txt with 100% similarity]
src/server/plugins/proxi/proxi_sensor.cpp [moved from src/plugins/proxi/proxi_sensor.cpp with 100% similarity]
src/server/plugins/proxi/proxi_sensor.h [moved from src/plugins/proxi/proxi_sensor.h with 100% similarity]
src/server/plugins/rotation_vector/CMakeLists.txt [moved from src/plugins/rotation_vector/CMakeLists.txt with 100% similarity]
src/server/plugins/rotation_vector/gaming_rv/CMakeLists.txt [moved from src/plugins/rotation_vector/gaming_rv/CMakeLists.txt with 100% similarity]
src/server/plugins/rotation_vector/gaming_rv/gaming_rv_sensor.cpp [moved from src/plugins/rotation_vector/gaming_rv/gaming_rv_sensor.cpp with 100% similarity]
src/server/plugins/rotation_vector/gaming_rv/gaming_rv_sensor.h [moved from src/plugins/rotation_vector/gaming_rv/gaming_rv_sensor.h with 100% similarity]
src/server/plugins/rotation_vector/geomagnetic_rv/CMakeLists.txt [moved from src/plugins/rotation_vector/geomagnetic_rv/CMakeLists.txt with 100% similarity]
src/server/plugins/rotation_vector/geomagnetic_rv/geomagnetic_rv_sensor.cpp [moved from src/plugins/rotation_vector/geomagnetic_rv/geomagnetic_rv_sensor.cpp with 100% similarity]
src/server/plugins/rotation_vector/geomagnetic_rv/geomagnetic_rv_sensor.h [moved from src/plugins/rotation_vector/geomagnetic_rv/geomagnetic_rv_sensor.h with 100% similarity]
src/server/plugins/rotation_vector/rv/CMakeLists.txt [moved from src/plugins/rotation_vector/rv/CMakeLists.txt with 100% similarity]
src/server/plugins/rotation_vector/rv/rv_sensor.cpp [moved from src/plugins/rotation_vector/rv/rv_sensor.cpp with 100% similarity]
src/server/plugins/rotation_vector/rv/rv_sensor.h [moved from src/plugins/rotation_vector/rv/rv_sensor.h with 100% similarity]
src/server/plugins/rotation_vector/rv_raw/CMakeLists.txt [moved from src/plugins/rotation_vector/rv_raw/CMakeLists.txt with 100% similarity]
src/server/plugins/rotation_vector/rv_raw/rv_raw_sensor.cpp [moved from src/plugins/rotation_vector/rv_raw/rv_raw_sensor.cpp with 100% similarity]
src/server/plugins/rotation_vector/rv_raw/rv_raw_sensor.h [moved from src/plugins/rotation_vector/rv_raw/rv_raw_sensor.h with 100% similarity]
src/server/plugins/temperature/CMakeLists.txt [moved from src/plugins/temperature/CMakeLists.txt with 100% similarity]
src/server/plugins/temperature/temperature_sensor.cpp [moved from src/plugins/temperature/temperature_sensor.cpp with 100% similarity]
src/server/plugins/temperature/temperature_sensor.h [moved from src/plugins/temperature/temperature_sensor.h with 100% similarity]
src/server/plugins/tilt/CMakeLists.txt [moved from src/plugins/tilt/CMakeLists.txt with 100% similarity]
src/server/plugins/tilt/tilt_sensor.cpp [moved from src/plugins/tilt/tilt_sensor.cpp with 100% similarity]
src/server/plugins/tilt/tilt_sensor.h [moved from src/plugins/tilt/tilt_sensor.h with 100% similarity]
src/server/plugins/ultraviolet/CMakeLists.txt [moved from src/plugins/ultraviolet/CMakeLists.txt with 100% similarity]
src/server/plugins/ultraviolet/ultraviolet_sensor.cpp [moved from src/plugins/ultraviolet/ultraviolet_sensor.cpp with 100% similarity]
src/server/plugins/ultraviolet/ultraviolet_sensor.h [moved from src/plugins/ultraviolet/ultraviolet_sensor.h with 100% similarity]
src/server/plugins/uncal_gyro/CMakeLists.txt [moved from src/plugins/uncal_gyro/CMakeLists.txt with 100% similarity]
src/server/plugins/uncal_gyro/uncal_gyro_sensor.cpp [moved from src/plugins/uncal_gyro/uncal_gyro_sensor.cpp with 100% similarity]
src/server/plugins/uncal_gyro/uncal_gyro_sensor.h [moved from src/plugins/uncal_gyro/uncal_gyro_sensor.h with 100% similarity]
src/server/sensor_base.cpp [moved from src/shared/sensor_base.cpp with 100% similarity]
src/server/sensor_base.h [moved from src/shared/sensor_base.h with 100% similarity]
src/server/sensor_fusion/CMakeLists.txt [moved from src/plugins/sensor_fusion/CMakeLists.txt with 100% similarity]
src/server/sensor_fusion/design/data/100ms/gravity/single_roll_throw/accel.txt [moved from src/plugins/sensor_fusion/design/data/100ms/gravity/single_roll_throw/accel.txt with 100% similarity]
src/server/sensor_fusion/design/data/100ms/gravity/single_roll_throw/gyro.txt [moved from src/plugins/sensor_fusion/design/data/100ms/gravity/single_roll_throw/gyro.txt with 100% similarity]
src/server/sensor_fusion/design/data/100ms/gravity/single_roll_throw/magnetic.txt [moved from src/plugins/sensor_fusion/design/data/100ms/gravity/single_roll_throw/magnetic.txt with 100% similarity]
src/server/sensor_fusion/design/data/100ms/linear_acceleration/move_x_y_z/accel.txt [moved from src/plugins/sensor_fusion/design/data/100ms/linear_acceleration/move_x_y_z/accel.txt with 100% similarity]
src/server/sensor_fusion/design/data/100ms/linear_acceleration/move_x_y_z/gyro.txt [moved from src/plugins/sensor_fusion/design/data/100ms/linear_acceleration/move_x_y_z/gyro.txt with 100% similarity]
src/server/sensor_fusion/design/data/100ms/linear_acceleration/move_x_y_z/magnetic.txt [moved from src/plugins/sensor_fusion/design/data/100ms/linear_acceleration/move_x_y_z/magnetic.txt with 100% similarity]
src/server/sensor_fusion/design/data/100ms/orientation/roll_pitch_yaw/accel.txt [moved from src/plugins/sensor_fusion/design/data/100ms/orientation/roll_pitch_yaw/accel.txt with 100% similarity]
src/server/sensor_fusion/design/data/100ms/orientation/roll_pitch_yaw/gyro.txt [moved from src/plugins/sensor_fusion/design/data/100ms/orientation/roll_pitch_yaw/gyro.txt with 100% similarity]
src/server/sensor_fusion/design/data/100ms/orientation/roll_pitch_yaw/magnetic.txt [moved from src/plugins/sensor_fusion/design/data/100ms/orientation/roll_pitch_yaw/magnetic.txt with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/In_hand/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/In_hand/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/In_hand/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/In_hand/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/In_hand/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/In_hand/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/Pant_pocket/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/Pant_pocket/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/Pant_pocket/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/Pant_pocket/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/Pant_pocket/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/Pant_pocket/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/Shirt_pocket/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/Shirt_pocket/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/Shirt_pocket/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/Shirt_pocket/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/Shirt_pocket/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/Shirt_pocket/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/While_talking/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/While_talking/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/While_talking/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/While_talking/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/While_talking/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_down/While_talking/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/In_hand/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/In_hand/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/In_hand/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/In_hand/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/In_hand/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/In_hand/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/Pant_pocket/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/Pant_pocket/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/Pant_pocket/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/Pant_pocket/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/Pant_pocket/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/Pant_pocket/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/Shirt_pocket/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/Shirt_pocket/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/Shirt_pocket/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/Shirt_pocket/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/Shirt_pocket/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/Shirt_pocket/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/While_talking/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/While_talking/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/While_talking/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/While_talking/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/While_talking/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Climb_stairs_up/While_talking/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_fast/In_hand/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_fast/In_hand/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_fast/In_hand/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_fast/In_hand/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_fast/In_hand/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_fast/In_hand/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_fast/Pant_pocket/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_fast/Pant_pocket/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_fast/Pant_pocket/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_fast/Pant_pocket/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_fast/Pant_pocket/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_fast/Pant_pocket/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_fast/Shirt_pocket/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_fast/Shirt_pocket/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_fast/Shirt_pocket/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_fast/Shirt_pocket/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_fast/Shirt_pocket/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_fast/Shirt_pocket/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_fast/While_talking/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_fast/While_talking/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_fast/While_talking/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_fast/While_talking/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_fast/While_talking/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_fast/While_talking/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_slow/In_hand/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_slow/In_hand/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_slow/In_hand/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_slow/In_hand/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_slow/In_hand/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_slow/In_hand/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_slow/Pant_pocket/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_slow/Pant_pocket/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_slow/Pant_pocket/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_slow/Pant_pocket/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_slow/Pant_pocket/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_slow/Pant_pocket/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_slow/Shirt_pocket/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_slow/Shirt_pocket/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_slow/Shirt_pocket/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_slow/Shirt_pocket/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_slow/Shirt_pocket/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_slow/Shirt_pocket/magnetic with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_slow/While_talking/accel [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_slow/While_talking/accel with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_slow/While_talking/gyro [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_slow/While_talking/gyro with 100% similarity]
src/server/sensor_fusion/design/data/25ms/pedo/Walk_slow/While_talking/magnetic [moved from src/plugins/sensor_fusion/design/data/25ms/pedo/Walk_slow/While_talking/magnetic with 100% similarity]
src/server/sensor_fusion/design/documentation/diagram/block_diagram_gravity_and_linear_acceleration.png [moved from src/plugins/sensor_fusion/design/documentation/diagram/block_diagram_gravity_and_linear_acceleration.png with 100% similarity]
src/server/sensor_fusion/design/documentation/diagram/block_diagram_orientation_estimation.png [moved from src/plugins/sensor_fusion/design/documentation/diagram/block_diagram_orientation_estimation.png with 100% similarity]
src/server/sensor_fusion/design/documentation/diagram/device_orientation.png [moved from src/plugins/sensor_fusion/design/documentation/diagram/device_orientation.png with 100% similarity]
src/server/sensor_fusion/design/documentation/diagram/kalman_filter_stages.png [moved from src/plugins/sensor_fusion/design/documentation/diagram/kalman_filter_stages.png with 100% similarity]
src/server/sensor_fusion/design/documentation/diagram/orientation_effect_on_gravity.png [moved from src/plugins/sensor_fusion/design/documentation/diagram/orientation_effect_on_gravity.png with 100% similarity]
src/server/sensor_fusion/design/documentation/diagram/projection_diagram_gravity_computation.png [moved from src/plugins/sensor_fusion/design/documentation/diagram/projection_diagram_gravity_computation.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_1.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_1.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_10.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_10.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_11.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_11.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_12.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_12.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_13.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_13.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_13_updated.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_13_updated.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_14.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_14.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_15.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_15.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_16.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_16.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_17.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_17.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_18.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_18.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_19.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_19.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_2.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_2.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_20.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_20.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_21.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_21.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_22.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_22.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_23.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_23.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_24.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_24.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_25.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_25.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_26.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_26.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_27.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_27.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_28.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_28.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_29.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_29.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_3.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_3.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_30.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_30.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_31.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_31.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_32.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_32.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_33.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_33.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_34.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_34.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_35.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_35.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_36.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_36.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_37.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_37.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_38.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_38.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_39.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_39.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_4.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_4.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_40.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_40.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_5.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_5.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_6.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_6.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_7.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_7.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_8.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_8.png with 100% similarity]
src/server/sensor_fusion/design/documentation/equation/equation_9.png [moved from src/plugins/sensor_fusion/design/documentation/equation/equation_9.png with 100% similarity]
src/server/sensor_fusion/design/documentation/sensor_fusion.htm [moved from src/plugins/sensor_fusion/design/documentation/sensor_fusion.htm with 100% similarity]
src/server/sensor_fusion/design/lib/axis_rot2quat.m [moved from src/plugins/sensor_fusion/design/lib/axis_rot2quat.m with 100% similarity]
src/server/sensor_fusion/design/lib/estimate_gaming_rv.m [moved from src/plugins/sensor_fusion/design/lib/estimate_gaming_rv.m with 100% similarity]
src/server/sensor_fusion/design/lib/estimate_geomagnetic_rv.m [moved from src/plugins/sensor_fusion/design/lib/estimate_geomagnetic_rv.m with 100% similarity]
src/server/sensor_fusion/design/lib/estimate_gravity.m [moved from src/plugins/sensor_fusion/design/lib/estimate_gravity.m with 100% similarity]
src/server/sensor_fusion/design/lib/estimate_linear_acceleration.m [moved from src/plugins/sensor_fusion/design/lib/estimate_linear_acceleration.m with 100% similarity]
src/server/sensor_fusion/design/lib/estimate_orientation.m [moved from src/plugins/sensor_fusion/design/lib/estimate_orientation.m with 100% similarity]
src/server/sensor_fusion/design/lib/euler2quat.m [moved from src/plugins/sensor_fusion/design/lib/euler2quat.m with 100% similarity]
src/server/sensor_fusion/design/lib/quat2euler.m [moved from src/plugins/sensor_fusion/design/lib/quat2euler.m with 100% similarity]
src/server/sensor_fusion/design/lib/quat2rot_mat.m [moved from src/plugins/sensor_fusion/design/lib/quat2rot_mat.m with 100% similarity]
src/server/sensor_fusion/design/lib/quat_prod.m [moved from src/plugins/sensor_fusion/design/lib/quat_prod.m with 100% similarity]
src/server/sensor_fusion/design/lib/rot_mat2quat.m [moved from src/plugins/sensor_fusion/design/lib/rot_mat2quat.m with 100% similarity]
src/server/sensor_fusion/design/lib/sf_pedometer.m [moved from src/plugins/sensor_fusion/design/lib/sf_pedometer.m with 100% similarity]
src/server/sensor_fusion/design/readme [moved from src/plugins/sensor_fusion/design/readme with 100% similarity]
src/server/sensor_fusion/design/sf_gaming_rv.m [moved from src/plugins/sensor_fusion/design/sf_gaming_rv.m with 100% similarity]
src/server/sensor_fusion/design/sf_geomagnetic_rv.m [moved from src/plugins/sensor_fusion/design/sf_geomagnetic_rv.m with 100% similarity]
src/server/sensor_fusion/design/sf_gravity.m [moved from src/plugins/sensor_fusion/design/sf_gravity.m with 100% similarity]
src/server/sensor_fusion/design/sf_linear_acceleration.m [moved from src/plugins/sensor_fusion/design/sf_linear_acceleration.m with 100% similarity]
src/server/sensor_fusion/design/sf_orientation.m [moved from src/plugins/sensor_fusion/design/sf_orientation.m with 100% similarity]
src/server/sensor_fusion/euler_angles.cpp [moved from src/plugins/sensor_fusion/euler_angles.cpp with 100% similarity]
src/server/sensor_fusion/euler_angles.h [moved from src/plugins/sensor_fusion/euler_angles.h with 100% similarity]
src/server/sensor_fusion/matrix.cpp [moved from src/plugins/sensor_fusion/matrix.cpp with 100% similarity]
src/server/sensor_fusion/matrix.h [moved from src/plugins/sensor_fusion/matrix.h with 100% similarity]
src/server/sensor_fusion/orientation_filter.cpp [moved from src/plugins/sensor_fusion/orientation_filter.cpp with 100% similarity]
src/server/sensor_fusion/orientation_filter.h [moved from src/plugins/sensor_fusion/orientation_filter.h with 100% similarity]
src/server/sensor_fusion/quaternion.cpp [moved from src/plugins/sensor_fusion/quaternion.cpp with 100% similarity]
src/server/sensor_fusion/quaternion.h [moved from src/plugins/sensor_fusion/quaternion.h with 100% similarity]
src/server/sensor_fusion/rotation_matrix.cpp [moved from src/plugins/sensor_fusion/rotation_matrix.cpp with 100% similarity]
src/server/sensor_fusion/rotation_matrix.h [moved from src/plugins/sensor_fusion/rotation_matrix.h with 100% similarity]
src/server/sensor_fusion/sensor_data.cpp [moved from src/plugins/sensor_fusion/sensor_data.cpp with 100% similarity]
src/server/sensor_fusion/sensor_data.h [moved from src/plugins/sensor_fusion/sensor_data.h with 100% similarity]
src/server/sensor_fusion/test/gravity_sensor.cpp [moved from src/plugins/sensor_fusion/test/gravity_sensor.cpp with 100% similarity]
src/server/sensor_fusion/test/gravity_sensor.h [moved from src/plugins/sensor_fusion/test/gravity_sensor.h with 100% similarity]
src/server/sensor_fusion/test/linear_acceleration_sensor.cpp [moved from src/plugins/sensor_fusion/test/linear_acceleration_sensor.cpp with 100% similarity]
src/server/sensor_fusion/test/linear_acceleration_sensor.h [moved from src/plugins/sensor_fusion/test/linear_acceleration_sensor.h with 100% similarity]
src/server/sensor_fusion/test/orientation_sensor.cpp [moved from src/plugins/sensor_fusion/test/orientation_sensor.cpp with 100% similarity]
src/server/sensor_fusion/test/orientation_sensor.h [moved from src/plugins/sensor_fusion/test/orientation_sensor.h with 100% similarity]
src/server/sensor_fusion/test/test_projects/euler_angles_test/.cproject [moved from src/plugins/sensor_fusion/test/test_projects/euler_angles_test/.cproject with 100% similarity]
src/server/sensor_fusion/test/test_projects/euler_angles_test/.project [moved from src/plugins/sensor_fusion/test/test_projects/euler_angles_test/.project with 100% similarity]
src/server/sensor_fusion/test/test_projects/euler_angles_test/euler_angles_main.cpp [moved from src/plugins/sensor_fusion/test/test_projects/euler_angles_test/euler_angles_main.cpp with 100% similarity]
src/server/sensor_fusion/test/test_projects/gravity_sensor_test/.cproject [moved from src/plugins/sensor_fusion/test/test_projects/gravity_sensor_test/.cproject with 100% similarity]
src/server/sensor_fusion/test/test_projects/gravity_sensor_test/.project [moved from src/plugins/sensor_fusion/test/test_projects/gravity_sensor_test/.project with 100% similarity]
src/server/sensor_fusion/test/test_projects/gravity_sensor_test/gravity_sensor_main.cpp [moved from src/plugins/sensor_fusion/test/test_projects/gravity_sensor_test/gravity_sensor_main.cpp with 100% similarity]
src/server/sensor_fusion/test/test_projects/linear_acceleration_sensor_test/.cproject [moved from src/plugins/sensor_fusion/test/test_projects/linear_acceleration_sensor_test/.cproject with 100% similarity]
src/server/sensor_fusion/test/test_projects/linear_acceleration_sensor_test/.project [moved from src/plugins/sensor_fusion/test/test_projects/linear_acceleration_sensor_test/.project with 100% similarity]
src/server/sensor_fusion/test/test_projects/linear_acceleration_sensor_test/linear_acceleration_sensor_main.cpp [moved from src/plugins/sensor_fusion/test/test_projects/linear_acceleration_sensor_test/linear_acceleration_sensor_main.cpp with 100% similarity]
src/server/sensor_fusion/test/test_projects/matrix_test/.cproject [moved from src/plugins/sensor_fusion/test/test_projects/matrix_test/.cproject with 100% similarity]
src/server/sensor_fusion/test/test_projects/matrix_test/.project [moved from src/plugins/sensor_fusion/test/test_projects/matrix_test/.project with 100% similarity]
src/server/sensor_fusion/test/test_projects/matrix_test/matrix_main.cpp [moved from src/plugins/sensor_fusion/test/test_projects/matrix_test/matrix_main.cpp with 100% similarity]
src/server/sensor_fusion/test/test_projects/orientation_sensor_test/.cproject [moved from src/plugins/sensor_fusion/test/test_projects/orientation_sensor_test/.cproject with 100% similarity]
src/server/sensor_fusion/test/test_projects/orientation_sensor_test/.project [moved from src/plugins/sensor_fusion/test/test_projects/orientation_sensor_test/.project with 100% similarity]
src/server/sensor_fusion/test/test_projects/orientation_sensor_test/orientation_sensor_main.cpp [moved from src/plugins/sensor_fusion/test/test_projects/orientation_sensor_test/orientation_sensor_main.cpp with 100% similarity]
src/server/sensor_fusion/test/test_projects/quaternion_test/.cproject [moved from src/plugins/sensor_fusion/test/test_projects/quaternion_test/.cproject with 100% similarity]
src/server/sensor_fusion/test/test_projects/quaternion_test/.project [moved from src/plugins/sensor_fusion/test/test_projects/quaternion_test/.project with 100% similarity]
src/server/sensor_fusion/test/test_projects/quaternion_test/quaternion_main.cpp [moved from src/plugins/sensor_fusion/test/test_projects/quaternion_test/quaternion_main.cpp with 100% similarity]
src/server/sensor_fusion/test/test_projects/rotation_matrix_test/.cproject [moved from src/plugins/sensor_fusion/test/test_projects/rotation_matrix_test/.cproject with 100% similarity]
src/server/sensor_fusion/test/test_projects/rotation_matrix_test/.project [moved from src/plugins/sensor_fusion/test/test_projects/rotation_matrix_test/.project with 100% similarity]
src/server/sensor_fusion/test/test_projects/rotation_matrix_test/rotation_matrix_main.cpp [moved from src/plugins/sensor_fusion/test/test_projects/rotation_matrix_test/rotation_matrix_main.cpp with 100% similarity]
src/server/sensor_fusion/test/test_projects/sensor_data_test/.cproject [moved from src/plugins/sensor_fusion/test/test_projects/sensor_data_test/.cproject with 100% similarity]
src/server/sensor_fusion/test/test_projects/sensor_data_test/.project [moved from src/plugins/sensor_fusion/test/test_projects/sensor_data_test/.project with 100% similarity]
src/server/sensor_fusion/test/test_projects/sensor_data_test/sensor_data_main.cpp [moved from src/plugins/sensor_fusion/test/test_projects/sensor_data_test/sensor_data_main.cpp with 100% similarity]
src/server/sensor_fusion/test/test_projects/vector_test/.cproject [moved from src/plugins/sensor_fusion/test/test_projects/vector_test/.cproject with 100% similarity]
src/server/sensor_fusion/test/test_projects/vector_test/.project [moved from src/plugins/sensor_fusion/test/test_projects/vector_test/.project with 100% similarity]
src/server/sensor_fusion/test/test_projects/vector_test/vector_main.cpp [moved from src/plugins/sensor_fusion/test/test_projects/vector_test/vector_main.cpp with 100% similarity]
src/server/sensor_fusion/vector.cpp [moved from src/plugins/sensor_fusion/vector.cpp with 100% similarity]
src/server/sensor_fusion/vector.h [moved from src/plugins/sensor_fusion/vector.h with 100% similarity]
src/server/sensord-server.pc.in [moved from src/shared/sensord-server.pc.in with 100% similarity]
src/server/virtual_sensor.cpp [moved from src/shared/virtual_sensor.cpp with 100% similarity]
src/server/virtual_sensor.h [moved from src/shared/virtual_sensor.h with 100% similarity]
src/server/worker_thread.cpp [moved from src/shared/worker_thread.cpp with 100% similarity]
src/server/worker_thread.h [moved from src/shared/worker_thread.h with 100% similarity]
src/shared/csensor_config.cpp [deleted file]
src/shared/csensor_config.h [deleted file]
src/shared/iio_common.cpp [deleted file]
src/shared/iio_common.h [deleted file]
src/shared/sensor_accel.h [deleted file]
src/shared/sensor_auto_rotation.h [deleted file]
src/shared/sensor_bio_led_red.h [deleted file]
src/shared/sensor_context.h [deleted file]
src/shared/sensor_fusion.h [deleted file]
src/shared/sensor_gaming_rv.h [deleted file]
src/shared/sensor_geomag.h [deleted file]
src/shared/sensor_geomagnetic_rv.h [deleted file]
src/shared/sensor_gravity.h [deleted file]
src/shared/sensor_gyro.h [deleted file]
src/shared/sensor_internal.h
src/shared/sensor_internal_deprecated.h
src/shared/sensor_light.h [deleted file]
src/shared/sensor_linear_accel.h [deleted file]
src/shared/sensor_motion.h [deleted file]
src/shared/sensor_orientation.h [deleted file]
src/shared/sensor_pressure.h [deleted file]
src/shared/sensor_proxi.h [deleted file]
src/shared/sensor_rv.h [deleted file]
src/shared/sensor_temperature.h [deleted file]
src/shared/sensor_tilt.h [deleted file]
src/shared/sensor_types.h [new file with mode: 0644]
src/shared/sensor_ultraviolet.h [deleted file]
src/shared/sensor_uncal_gyro.h [deleted file]

similarity index 100%
rename from src/shared/cconfig.h
rename to src/server/cconfig.h
diff --git a/src/shared/csensor_config.cpp b/src/shared/csensor_config.cpp
deleted file mode 100755 (executable)
index f36c818..0000000
+++ /dev/null
@@ -1,279 +0,0 @@
-/*
- * libsensord-share
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#include <csensor_config.h>
-#include "common.h"
-#include <libxml/xmlmemory.h>
-#include <libxml/parser.h>
-#include <sstream>
-#include <iostream>
-#include <fstream>
-#include <string>
-
-using std::ifstream;
-using std::string;
-using std::istringstream;
-
-#define ROOT_ELEMENT   "SENSOR"
-#define TEXT_ELEMENT   "text"
-#define MODEL_ID_ATTR  "id"
-#define DEFAULT_ATTR   "value"
-
-csensor_config::csensor_config()
-{
-}
-
-csensor_config& csensor_config::get_instance(void)
-{
-       static bool load_done = false;
-       static csensor_config inst;
-
-       if (!load_done) {
-               inst.load_config(SENSOR_CONFIG_FILE_PATH);
-               inst.get_device_id();
-               if (!inst.m_device_id.empty())
-                       INFO("Device ID = %s", inst.m_device_id.c_str());
-               else
-                       ERR("Failed to get Device ID");
-               load_done = true;
-       }
-
-       return inst;
-}
-
-bool csensor_config::load_config(const string& config_path)
-{
-       xmlDocPtr doc;
-       xmlNodePtr cur;
-
-       DBG("csensor_config::load_config(\"%s\") is called!\n",config_path.c_str());
-
-       doc = xmlParseFile(config_path.c_str());
-
-       if (doc == NULL) {
-               ERR("There is no %s\n",config_path.c_str());
-               return false;
-       }
-
-       cur = xmlDocGetRootElement(doc);
-       if(cur == NULL) {
-               ERR("There is no root element in %s\n",config_path.c_str());
-               xmlFreeDoc(doc);
-               return false;
-       }
-
-       if(xmlStrcmp(cur->name, (const xmlChar *)ROOT_ELEMENT)) {
-               ERR("Wrong type document: there is no [%s] root element in %s\n",ROOT_ELEMENT,config_path.c_str());
-               xmlFreeDoc(doc);
-               return false;
-       }
-
-       xmlNodePtr model_list_node_ptr;
-       xmlNodePtr model_node_ptr;
-       xmlNodePtr element_node_ptr;
-       xmlAttrPtr attr_ptr;
-       char* prop = NULL;
-
-       model_list_node_ptr = cur->xmlChildrenNode;
-
-       while (model_list_node_ptr != NULL) {
-               //skip garbage element, [text]
-               if (!xmlStrcmp(model_list_node_ptr->name,(const xmlChar *)TEXT_ELEMENT)) {
-                       model_list_node_ptr = model_list_node_ptr->next;
-                       continue;
-               }
-
-               //insert Model_list to config map
-               m_sensor_config[(const char*)model_list_node_ptr->name];
-               DBG("<%s>\n",(const char*)model_list_node_ptr->name);
-
-               model_node_ptr = model_list_node_ptr->xmlChildrenNode;
-               while (model_node_ptr != NULL){
-                       //skip garbage element, [text]
-                       if (!xmlStrcmp(model_node_ptr->name,(const xmlChar *)TEXT_ELEMENT)) {
-                               model_node_ptr = model_node_ptr->next;
-                               continue;
-                       }
-
-
-                       string model_id;
-                       prop = (char*)xmlGetProp(model_node_ptr,(const xmlChar*)MODEL_ID_ATTR);
-                       model_id = prop;
-                       free(prop);
-
-                       //insert Model to Model_list
-                       m_sensor_config[(const char*)model_list_node_ptr->name][model_id];
-                       DBG("<%s id=\"%s\">\n",(const char*)model_list_node_ptr->name,model_id.c_str());
-
-                       element_node_ptr = model_node_ptr->xmlChildrenNode;
-                       while (element_node_ptr != NULL) {
-                               //skip garbage element, [text]
-                               if (!xmlStrcmp(element_node_ptr->name,(const xmlChar *)TEXT_ELEMENT)) {
-                                       element_node_ptr = element_node_ptr->next;
-                                       continue;
-                               }
-
-                               //insert Element to Model
-                               m_sensor_config[(const char*)model_list_node_ptr->name][model_id][(const char*)element_node_ptr->name];
-                               DBG("<%s id=\"%s\"><%s>\n",(const char*)model_list_node_ptr->name,model_id.c_str(),(const char*)element_node_ptr->name);
-
-                               attr_ptr = element_node_ptr->properties;
-                               while (attr_ptr != NULL) {
-
-                                       string key,value;
-                                       key = (char*)attr_ptr->name;
-                                       prop = (char*)xmlGetProp(element_node_ptr,attr_ptr->name);
-                                       value = prop;
-                                       free(prop);
-
-                                       //insert attribute to Element
-                                       m_sensor_config[(const char*)model_list_node_ptr->name][model_id][(const char*)element_node_ptr->name][key]=value;
-                                       DBG("<%s id=\"%s\"><%s \"%s\"=\"%s\">\n",(const char*)model_list_node_ptr->name,model_id.c_str(),(const char*)element_node_ptr->name,key.c_str(),value.c_str());
-                                       attr_ptr = attr_ptr->next;
-                               }
-
-
-                               element_node_ptr = element_node_ptr->next;
-                       }
-
-                       DBG("\n");
-                       model_node_ptr = model_node_ptr->next;
-               }
-
-               DBG("\n");
-               model_list_node_ptr = model_list_node_ptr->next;
-       }
-
-       xmlFreeDoc(doc);
-       return true;
-}
-
-
-bool csensor_config::get(const string& sensor_type,const string& model_id, const string& element, const string& attr, string& value)
-{
-       auto it_model_list = m_sensor_config.find(sensor_type);
-
-       if (it_model_list == m_sensor_config.end())     {
-               ERR("There is no <%s> element\n",sensor_type.c_str());
-               return false;
-       }
-
-       auto it_model = it_model_list->second.find(model_id);
-
-       if (it_model == it_model_list->second.end()) {
-               ERR("There is no <%s id=\"%s\"> element\n",sensor_type.c_str(),model_id.c_str());
-               return false;
-       }
-
-       auto it_element = it_model->second.find(element);
-
-       if (it_element == it_model->second.end()) {
-               DBG("There is no <%s id=\"%s\"><%s> element\n",sensor_type.c_str(),model_id.c_str(),element.c_str());
-               return false;
-       }
-
-       auto it_attr = it_element->second.find(attr);
-
-       if (it_attr == it_element->second.end()) {
-               DBG("There is no <%s id=\"%s\"><%s \"%s\">\n",sensor_type.c_str(),model_id.c_str(),element.c_str(),attr.c_str());
-               return false;
-       }
-
-       value = it_attr->second;
-
-       return true;
-}
-
-bool csensor_config::get(const string& sensor_type, const string& model_id, const string& element, const string& attr, double& value)
-{
-       string str_value;
-
-       if (get(sensor_type,model_id,element,attr,str_value) == false)
-               return false;
-
-       istringstream convert(str_value);
-
-       if ( !(convert >> value))
-               value = 0;
-
-       return true;
-}
-
-bool csensor_config::get(const string& sensor_type, const string& model_id, const string& element, const string& attr, long& value)
-{
-       string str_value;
-
-       if (get(sensor_type,model_id,element,attr,str_value) == false)
-               return false;
-
-       istringstream convert(str_value);
-
-       if ( !(convert >> value))
-               value = 0;
-
-       return true;
-}
-
-bool csensor_config::get(const string& sensor_type, const string& model_id, const string& element, string& value)
-{
-       if (get(sensor_type, model_id, element, m_device_id, value))
-               return true;
-
-       if (get(sensor_type, model_id, element, DEFAULT_ATTR, value))
-               return true;
-
-       return false;
-}
-
-bool csensor_config::get(const string& sensor_type, const string& model_id, const string& element, double& value)
-{
-       if (get(sensor_type, model_id, element, m_device_id, value))
-               return true;
-
-       if (get(sensor_type, model_id, element, DEFAULT_ATTR, value))
-               return true;
-
-       return false;
-}
-
-bool csensor_config::get(const string& sensor_type, const string& model_id, const string& element, long& value)
-{
-       if (get(sensor_type, model_id, element, m_device_id, value))
-               return true;
-
-       if (get(sensor_type, model_id, element, DEFAULT_ATTR, value))
-               return true;
-
-       return false;
-}
-
-bool csensor_config::is_supported(const string& sensor_type,const string& model_id)
-{
-       auto it_model_list = m_sensor_config.find(sensor_type);
-
-       if (it_model_list == m_sensor_config.end())
-               return false;
-
-       auto it_model = it_model_list->second.find(model_id);
-
-       if (it_model == it_model_list->second.end())
-               return false;
-
-       return true;
-}
diff --git a/src/shared/csensor_config.h b/src/shared/csensor_config.h
deleted file mode 100755 (executable)
index 5ce6c74..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- * libsensord-share
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#if !defined(_CSENSOR_CONFIG_CLASS_H_)
-#define _CSENSOR_CONFIG_CLASS_H_
-
-#include <cconfig.h>
-
-#define SENSOR_CONFIG_FILE_PATH "/usr/etc/sensors.xml"
-
-typedef std::unordered_map<std::string,std::string> Element;
-/*
-* an Element  is a group of attributes
-* <Element value1 = "10.0", value2 =  "20.0"/>
-*
-* "value" -> "LSM330DLC"
-*
-*/
-
-typedef std::unordered_map<std::string,Element> Model;
-/*
-* a Model is a group of elements to consist of  specific vendor's one sensor configuration
-* <NAME value = "LSM330DLC" />
-* <VENDOR value = "ST Microelectronics"/>
-* <RAW_DATA_UNIT value = "1" />
-* <RESOLUTION value = "12" />
-*
-* <NAME> -> <value = "LSM330DLC"/>
-*
-*/
-
-typedef std::unordered_map<std::string,Model> Model_list;
-/*
-* a Model_list is  a group of Model
-* <MODEL id = "lsm330dlc_accel">
-* </MODEL>
-* <MODEL id = "mpu6500">
-* </MODEL>
-*
-* "lsm330dlc_accel" -> <Model>
-*
-*/
-
-typedef std::unordered_map<std::string,Model_list> Sensor_config;
-/*
-* a SensorConfig represents sensors.xml
-* <ACCEL/>
-* <GYRO/>
-* <PROXIMITY/>
-*
-* "ACCEL" -> Model_list
-*
-*/
-
-class csensor_config : public cconfig
-{
-private:
-       csensor_config();
-       csensor_config(csensor_config const&) {};
-       csensor_config& operator=(csensor_config const&);
-
-       bool load_config(const std::string& config_path);
-
-       Sensor_config m_sensor_config;
-public:
-       static csensor_config& get_instance(void);
-
-       bool get(const std::string& sensor_type, const std::string& model_id, const std::string& element, const std::string& attr, std::string& value);
-       bool get(const std::string& sensor_type, const std::string& model_id, const std::string& element, const std::string& attr, double& value);
-       bool get(const std::string& sensor_type, const std::string& model_id, const std::string& element, const std::string& attr, long& value);
-
-       bool get(const std::string& sensor_type, const std::string& model_id, const std::string& element, std::string& value);
-       bool get(const std::string& sensor_type, const std::string& model_id, const std::string& element, double& value);
-       bool get(const std::string& sensor_type, const std::string& model_id, const std::string& element, long& value);
-
-       bool is_supported(const std::string &sensor_type, const std::string &model_id);
-};
-
-#endif
diff --git a/src/shared/iio_common.cpp b/src/shared/iio_common.cpp
deleted file mode 100755 (executable)
index 7cfcba5..0000000
+++ /dev/null
@@ -1,208 +0,0 @@
-/*
- * sensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#include <iio_common.h>
-#include <fcntl.h>
-#include <dirent.h>
-#include <fstream>
-#include <string>
-#include <iostream>
-
-#define SCAN_EL_DIR "scan_elements/"
-
-#define BYTE_SIZE      8
-#define ULONGLONG      64
-
-using std::fstream;
-using std::ifstream;
-using std::string;
-using std::ios;
-
-void sort_channels_by_index(struct channel_parameters *channels, int count)
-{
-       struct channel_parameters temp;
-       int i, j;
-
-       for (i = 0; i < count; i++)
-               for (j = i; (j > 0) && (channels[j].index < channels[j-1].index); j--)
-               {
-                       temp = channels[j];
-                       channels[j] = channels[j-1];
-                       channels[j-1] = temp;
-               }
-}
-
-int decode_channel_data_type(const char *device_dir, const char *ch_name, struct channel_parameters *ch_info)
-{
-       string file_type, type_string;
-       ifstream ftype;
-       char s_char, e_char;
-       unsigned bit_count, pad_bit_count, shift_count;
-
-       file_type = string(device_dir) + string(SCAN_EL_DIR) + string(ch_name) + string("_type");
-       ftype.open(file_type.c_str());
-       if (!ftype.is_open())
-               return -1;
-       ftype >> type_string;
-       sscanf(type_string.c_str(), "%ce:%c%u/%u>>%u", &e_char,
-                       &s_char, &bit_count, &pad_bit_count, &shift_count);
-       if (e_char == 'b')
-               ch_info->big_endian = 1;
-       else
-               ch_info->big_endian = 0;
-
-       if (s_char == 's')
-               ch_info->is_signed = 1;
-       else
-               ch_info->is_signed = 0;
-
-       ch_info->valid_bits = bit_count;
-       ch_info->byte_count = pad_bit_count / BYTE_SIZE;
-
-       if (bit_count == ULONGLONG)
-               ch_info->mask = ~0;
-       else
-               ch_info->mask = (1 << bit_count) - 1;
-       ch_info->shift = shift_count;
-       return 0;
-}
-
-int add_channel_to_array(const char *device_dir, const char *ch_name, struct channel_parameters *channel)
-{
-       string file_en, file_type, file_index, file_scale, file_offset;
-       ifstream ftemp;
-       unsigned int i;
-
-       file_en = string(device_dir) + string(SCAN_EL_DIR) + string(ch_name) + string("_en");
-       file_index = string(device_dir) + string(SCAN_EL_DIR) + string(ch_name) + string("_index");
-       file_scale = string(device_dir) + string(ch_name) + string("_scale");
-       file_offset = string(device_dir) + string(ch_name) + string("_offset");
-
-       ftemp.open(file_en.c_str());
-       if (!ftemp.is_open())
-               return -1;
-
-       ftemp >> i;
-       ftemp.close();
-       if (i == 0)
-               return -1;
-
-       if (asprintf(&(channel->prefix_str), "%s", ch_name) == -1)
-               return -1;
-
-       channel->is_en = 1;
-       channel->scale = 1.0;
-       channel->offset = 0.0;
-
-       ftemp.open(file_index.c_str());
-       if (!ftemp.is_open())
-               return -1;
-       ftemp >> i;
-       channel->index = i;
-       ftemp.close();
-
-       ftemp.open(file_scale.c_str());
-       if (ftemp.is_open())
-       {
-               ftemp >> channel->scale;
-               ftemp.close();
-       }
-
-       ftemp.open(file_offset.c_str());
-       if (ftemp.is_open())
-       {
-               ftemp >> channel->offset;
-               ftemp.close();
-       }
-       decode_channel_data_type(device_dir, ch_name, channel);
-       return 0;
-}
-
-int get_channel_array_size(struct channel_parameters *channels, int num_channels)
-{
-       int bytes = 0;
-       int i = 0;
-       while (i < num_channels) {
-               if (bytes % channels[i].byte_count == 0)
-                       channels[i].buf_index = bytes;
-               else
-                       channels[i].buf_index = bytes - bytes % channels[i].byte_count
-                       + channels[i].byte_count;
-               bytes = channels[i].buf_index + channels[i].byte_count;
-               i++;
-       }
-       return bytes;
-}
-
-int update_sysfs_num(const char *filepath, int val, bool verify)
-{
-       fstream sysfile;
-       sysfile.open(filepath);
-       if (!sysfile.is_open())
-               return -1;
-       sysfile << val;
-       if (verify)
-       {
-               int test;
-               sysfile.seekp(0, ios::beg);
-               sysfile >> test;
-               if (test != val)
-                       return -1;
-       }
-       return 0;
-}
-
-int update_sysfs_string(const char *filepath, const char *val)
-{
-       fstream sysfile;
-       sysfile.open(filepath);
-       if (!sysfile.is_open()) {
-               ERR("File Open Error, %s", filepath);
-               return -1;
-       }
-       sysfile << val;
-       return 0;
-}
-
-int convert_bytes_to_int(int input, struct channel_parameters *info)
-{
-       int retVal;
-
-       if (info->big_endian)
-               input = be16toh((unsigned short int) input);
-       else
-               input = le16toh((unsigned short int) input);
-
-       input = input >> info->shift;
-       if (info->is_signed)
-       {
-               short int val = input;
-               val &= (1 << info->valid_bits) - 1;
-               val = (short int)(val << (16 - info->valid_bits)) >>
-                       (16 - info->valid_bits);
-               retVal = val;
-       }
-       else
-       {
-               unsigned short int val = input;
-               val &= (1 << info->valid_bits) - 1;
-               retVal = val;
-       }
-       return retVal;
-}
diff --git a/src/shared/iio_common.h b/src/shared/iio_common.h
deleted file mode 100755 (executable)
index 80f1f34..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * sensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef IIO_COMMON_H_
-#define IIO_COMMON_H_
-
-#include <linux/ioctl.h>
-#include <fstream>
-#include <string>
-#include <common.h>
-
-#define NO_OF_ULL_BYTES                8
-#define NO_OF_SHORT_VAL                4
-#define CH0_INDEX                      0
-#define CH1_INDEX                      1
-
-#define GET_DIFF_BIT(val)      (((unsigned short)(val) >> 7) & 0x01)
-#define GET_DIR_VAL(val)       ((val) & 0x0F)
-
-#define IOCTL_IIO_EVENT_FD _IOR('i', 0x90, int)
-
-struct channel_parameters
-{
-       char *prefix_str;
-       float scale;
-       float offset;
-       unsigned int index;
-       unsigned int byte_count;
-       unsigned int valid_bits;
-       unsigned int shift;
-       unsigned long long int mask;
-       unsigned int big_endian;
-       unsigned int is_signed;
-       unsigned int is_en;
-       unsigned int buf_index;
-};
-
-typedef struct iio_event_struct
-{
-       unsigned long long int event_id;
-       long long int timestamp;
-} iio_event_t;
-
-typedef enum event_id_field
-{
-       CH_TYPE = 4,
-       MODIFIER,
-       DIRECTION,
-       EVENT_TYPE,
-} event_id_field_t;
-
-typedef union ull_bytes
-{
-       unsigned long long num;
-       short int channels[NO_OF_SHORT_VAL];
-       unsigned char bytes[NO_OF_ULL_BYTES];
-} ull_bytes_t;
-
-void sort_channels_by_index(struct channel_parameters *channels, int count);
-int decode_channel_data_type(const char *device_dir, const char *ch_name, struct channel_parameters *ch_info);
-int add_channel_to_array(const char *device_dir, const char *ch_name, struct channel_parameters *channel);
-int get_channel_array_size(struct channel_parameters *channels, int num_channels);
-int update_sysfs_num(const char *filepath, int val, bool verify = false);
-int update_sysfs_string(const char *filepath, const char *val);
-int convert_bytes_to_int(int input, struct channel_parameters *info);
-
-template <typename value_t>
-bool read_node_value(std::string node_path, value_t &value)
-{
-       std::ifstream handle;
-       handle.open(node_path.c_str());
-       if (!handle)
-       {
-               ERR("Failed to open handle(%s)", node_path.c_str());
-               return false;
-       }
-       handle >> value;
-       handle.close();
-
-       return true;
-}
-
-#endif /* IIO_COMMON_H_ */
diff --git a/src/shared/sensor_accel.h b/src/shared/sensor_accel.h
deleted file mode 100755 (executable)
index ed98ff1..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_ACCEL_H__
-#define __SENSOR_ACCEL_H__
-
-//! Pre-defined events for the accelometer sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_ACCEL Accelerometer Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Accelerometer sensor.
- * @{
- */
-
-enum accelerometer_event_type {
-       ACCELEROMETER_RAW_DATA_EVENT                                    = (ACCELEROMETER_SENSOR << 16) | 0x0001,
-       ACCELEROMETER_UNPROCESSED_DATA_EVENT                    = (ACCELEROMETER_SENSOR << 16) | 0x0002,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_auto_rotation.h b/src/shared/sensor_auto_rotation.h
deleted file mode 100755 (executable)
index 1f717c5..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef _SENSOR_AUTO_ROTATION_H_
-#define _SENSOR_AUTO_ROTATION_H_
-
-//! Pre-defined events for the auto_rotation sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_AUTO_ROTATION Auto Rotation Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Auto Rotation sensor.
- * @{
- */
-
-enum auto_rotation_event_type {
-       AUTO_ROTATION_CHANGE_STATE_EVENT = (AUTO_ROTATION_SENSOR << 16) | 0x0001,
-};
-
-enum auto_rotation_state {
-       AUTO_ROTATION_DEGREE_UNKNOWN = 0,
-       AUTO_ROTATION_DEGREE_0,
-       AUTO_ROTATION_DEGREE_90,
-       AUTO_ROTATION_DEGREE_180,
-       AUTO_ROTATION_DEGREE_270,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_bio_led_red.h b/src/shared/sensor_bio_led_red.h
deleted file mode 100644 (file)
index 4720f2c..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_BIO_LED_RED_H__
-#define __SENSOR_BIO_LED_RED_H__
-
-//! Pre-defined events for the bio led red sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_BIO_LED_RED HRM LED RED Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the HRM LED RED sensor.
- * @{
- */
-
-enum bio_led_green_event_type {
-       BIO_LED_RED_RAW_DATA_EVENT      = (BIO_LED_RED_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_context.h b/src/shared/sensor_context.h
deleted file mode 100755 (executable)
index d35f941..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_CONTEXT_H__
-#define __SENSOR_CONTEXT_H__
-
-//! Pre-defined events for the context sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_CONTEXT Context Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Context sensor.
- * @{
- */
-
-enum context_event_type {
-       CONTEXT_REPORT_EVENT    = (CONTEXT_SENSOR << 16) | 0x0001,
-};
-
-enum context_property_id {
-       CONTEXT_PROPERTY_UNKNOWN        = 0,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_fusion.h b/src/shared/sensor_fusion.h
deleted file mode 100755 (executable)
index 1a65ea3..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_FUSION_H__
-#define __SENSOR_FUSION_H__
-
-//! Pre-defined events for the fusion sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_FUSION Fusion Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Fusion sensor.
- * @{
- */
-enum fusion_event_type {
-       FUSION_EVENT = (FUSION_SENSOR << 16) | 0x0001,
-       FUSION_UNCAL_GYRO_EVENT = (FUSION_SENSOR << 16) | 0x0002,
-       FUSION_CALIBRATION_NEEDED_EVENT = (FUSION_SENSOR << 16) | 0x0003,
-       FUSION_ORIENTATION_ENABLED = (FUSION_SENSOR << 16) | 0x0004,
-       FUSION_ROTATION_VECTOR_ENABLED = (FUSION_SENSOR << 16) | 0x0005,
-       FUSION_GAMING_ROTATION_VECTOR_ENABLED = (FUSION_SENSOR << 16) | 0x0006,
-       FUSION_GEOMAGNETIC_ROTATION_VECTOR_ENABLED = (FUSION_SENSOR << 16) | 0x0007,
-       FUSION_TILT_ENABLED = (FUSION_SENSOR << 16) | 0x0008,
-       FUSION_UNCAL_GYRO_ENABLED = (FUSION_SENSOR << 16) | 0x0009,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_gaming_rv.h b/src/shared/sensor_gaming_rv.h
deleted file mode 100755 (executable)
index a02f738..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-
-#ifndef __SENSOR_GAMING_RV_H__
-#define __SENSOR_GAMING_RV_H__
-
-//! Pre-defined events for the gaming rotation vector sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_GAMING_RV Gaming Rotation Vector Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Gaming Rotation Vector sensor.
- * @{
- */
-
-enum gaming_rv_event_type {
-       GAMING_RV_RAW_DATA_EVENT        = (GAMING_RV_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
-
diff --git a/src/shared/sensor_geomag.h b/src/shared/sensor_geomag.h
deleted file mode 100755 (executable)
index 7680ac2..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_GEOMAG_H__
-#define __SENSOR_GEOMAG_H__
-
-//! Pre-defined events for the geomagnetic sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_GEOMAG Geomagnetic Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Geomagnatic sensor.
- * @{
- */
-
-enum geomag_event_type {
-       GEOMAGNETIC_RAW_DATA_EVENT      = (GEOMAGNETIC_SENSOR << 16) | 0x0001,
-       GEOMAGNETIC_CALIBRATION_NEEDED_EVENT    = (GEOMAGNETIC_SENSOR << 16) | 0x0002,
-       GEOMAGNETIC_UNPROCESSED_DATA_EVENT      = (GEOMAGNETIC_SENSOR << 16) | 0x0003,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_geomagnetic_rv.h b/src/shared/sensor_geomagnetic_rv.h
deleted file mode 100755 (executable)
index c0fc830..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_GEOMAGNETIC_RV_H__
-#define __SENSOR_GEOMAGNETIC_RV_H__
-
-//! Pre-defined events for the geomagnetic rotation vector sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_GEOMAGNETIC_RV Geomagnetic Rotation Vector Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Geomagnetic Rotation Vector sensor.
- * @{
- */
-
-enum geomagnetic_rv_event_type {
-       GEOMAGNETIC_RV_RAW_DATA_EVENT   = (GEOMAGNETIC_RV_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __SENSOR_GEOMAGNETIC_RV_H__ */
diff --git a/src/shared/sensor_gravity.h b/src/shared/sensor_gravity.h
deleted file mode 100755 (executable)
index de48faa..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_GRAVITY_H__
-#define __SENSOR_GRAVITY_H__
-
-//! Pre-defined events for the gravity sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_GRAVITY Gravity Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Gravity sensor.
- * @{
- */
-
-enum gravity_event_type {
-       GRAVITY_RAW_DATA_EVENT  = (GRAVITY_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_gyro.h b/src/shared/sensor_gyro.h
deleted file mode 100755 (executable)
index 0425afe..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_GYRO_H__
-#define __SENSOR_GYRO_H__
-
-//! Pre-defined events for the gyroscope sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_GYRO Gyro Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the gyro sensor.
- * @{
- */
-
-enum gyro_event_type {
-       GYROSCOPE_RAW_DATA_EVENT        = (GYROSCOPE_SENSOR << 16) | 0x0001,
-       GYROSCOPE_UNPROCESSED_DATA_EVENT        = (GYROSCOPE_SENSOR << 16) | 0x0002,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
index b02ba89..a4395f4 100644 (file)
@@ -43,26 +43,7 @@ extern "C"
 #include <sensor_common.h>
 
 /*header for each sensor type*/
-#include <sensor_accel.h>
-#include <sensor_geomag.h>
-#include <sensor_light.h>
-#include <sensor_proxi.h>
-#include <sensor_gyro.h>
-#include <sensor_pressure.h>
-#include <sensor_context.h>
-#include <sensor_auto_rotation.h>
-#include <sensor_gravity.h>
-#include <sensor_linear_accel.h>
-#include <sensor_orientation.h>
-#include <sensor_rv.h>
-#include <sensor_geomagnetic_rv.h>
-#include <sensor_gaming_rv.h>
-#include <sensor_temperature.h>
-#include <sensor_fusion.h>
-#include <sensor_tilt.h>
-#include <sensor_uncal_gyro.h>
-#include <sensor_ultraviolet.h>
-#include <sensor_bio_led_red.h>
+#include <sensor_types.h>
 
 typedef void (*sensor_cb_t)(sensor_t sensor, unsigned int event_type, sensor_data_t *data, void *user_data);
 typedef void (*sensorhub_cb_t)(sensor_t sensor, unsigned int event_type, sensorhub_data_t *data, void *user_data);
index b42c045..38665f7 100755 (executable)
@@ -37,28 +37,7 @@ extern "C"
 #include <sensor_common.h>
 
 /*header for each sensor type*/
-#include <sensor_accel.h>
-#include <sensor_auto_rotation.h>
-#include <sensor_geomag.h>
-#include <sensor_light.h>
-#include <sensor_proxi.h>
-#include <sensor_gyro.h>
-#include <sensor_pressure.h>
-#include <sensor_context.h>
-#include <sensor_gravity.h>
-#include <sensor_linear_accel.h>
-#include <sensor_orientation.h>
-#include <sensor_temperature.h>
-#include <sensor_rv.h>
-#include <sensor_geomagnetic_rv.h>
-#include <sensor_gaming_rv.h>
-#include <sensor_motion.h>
-#include <sensor_deprecated.h>
-#include <sensor_fusion.h>
-#include <sensor_tilt.h>
-#include <sensor_ultraviolet.h>
-#include <sensor_uncal_gyro.h>
-#include <sensor_bio_led_red.h>
+#include <sensor_types.h>
 
 #define MAX_KEY_LEN 30
 
diff --git a/src/shared/sensor_light.h b/src/shared/sensor_light.h
deleted file mode 100755 (executable)
index 1f476b6..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_LIGHT_H__
-#define __SENSOR_LIGHT_H__
-
-//! Pre-defined events for the light sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_LIGHT Light Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the light sensor.
- * @{
- */
-
-enum light_event_type {
-       LIGHT_LUX_DATA_EVENT    = (LIGHT_SENSOR << 16) | 0x0001,
-       LIGHT_LEVEL_DATA_EVENT  = (LIGHT_SENSOR << 16) | 0x0002,
-       LIGHT_CHANGE_LEVEL_EVENT        = (LIGHT_SENSOR << 16) | 0x0004,
-};
-
-enum light_property_id {
-       LIGHT_PROPERTY_UNKNOWN = 0,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_linear_accel.h b/src/shared/sensor_linear_accel.h
deleted file mode 100755 (executable)
index 306d1d6..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_LINEAR_ACCEL_H__
-#define __SENSOR_LINEAR_ACCEL_H__
-
-//! Pre-defined events for the linear accelerometer sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_LINEAR_ACCEL Linear Accelerometer Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Linear Accelerometer sensor.
- * @{
- */
-
-enum linear_accel_event_type {
-       LINEAR_ACCEL_RAW_DATA_EVENT     = (LINEAR_ACCEL_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_motion.h b/src/shared/sensor_motion.h
deleted file mode 100755 (executable)
index 1fe2db5..0000000
+++ /dev/null
@@ -1,150 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_MOTION_H__
-#define __SENSOR_MOTION_H__
-
-//! Pre-defined events for the motion sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-enum motion_event_type {
-       MOTION_ENGINE_EVENT_SNAP                                = (MOTION_SENSOR << 16) | 0x0001,
-       MOTION_ENGINE_EVENT_SHAKE                               = (MOTION_SENSOR << 16) | 0x0002,
-       MOTION_ENGINE_EVENT_DOUBLETAP                   = (MOTION_SENSOR << 16) | 0x0004,
-       MOTION_ENGINE_EVENT_PANNING                             = (MOTION_SENSOR << 16) | 0x0008,
-       MOTION_ENGINE_EVENT_TOP_TO_BOTTOM               = (MOTION_SENSOR << 16) | 0x0010,
-       MOTION_ENGINE_EVENT_DIRECT_CALL                 = (MOTION_SENSOR << 16) | 0x0020,
-       MOTION_ENGINE_EVENT_TILT_TO_UNLOCK              = (MOTION_SENSOR << 16) | 0x0040,
-       MOTION_ENGINE_EVENT_LOCK_EXECUTE_CAMERA = (MOTION_SENSOR << 16) | 0x0080,
-       MOTION_ENGINE_EVENT_SMART_ALERT                 = (MOTION_SENSOR << 16) | 0x0100,
-       MOTION_ENGINE_EVENT_TILT                                = (MOTION_SENSOR << 16) | 0x0200,
-       MOTION_ENGINE_EVENT_PANNING_BROWSE              = (MOTION_SENSOR << 16) | 0x0400,
-       MOTION_ENGINE_EVENT_NO_MOVE                             = (MOTION_SENSOR << 16) | 0x0800,
-       MOTION_ENGINE_EVENT_SHAKE_ALWAYS_ON     = (MOTION_SENSOR << 16) | 0x1000,
-       MOTION_ENGINE_EVENT_SMART_RELAY         = (MOTION_SENSOR << 16) | 0x2000,
-};
-
-enum motion_snap_event {
-       MOTION_ENGIEN_SNAP_NONE                 = 0,
-       MOTION_ENGIEN_NEGATIVE_SNAP_X   = 1,
-       MOTION_ENGIEN_POSITIVE_SNAP_X   = 2,
-       MOTION_ENGIEN_NEGATIVE_SNAP_Y   = 3,
-       MOTION_ENGIEN_POSITIVE_SNAP_Y   = 4,
-       MOTION_ENGIEN_NEGATIVE_SNAP_Z   = 5,
-       MOTION_ENGIEN_POSITIVE_SNAP_Z   = 6,
-       MOTION_ENGIEN_SNAP_LEFT                 = MOTION_ENGIEN_NEGATIVE_SNAP_X,
-       MOTION_ENGIEN_SNAP_RIGHT                = MOTION_ENGIEN_POSITIVE_SNAP_X,
-       MOTION_ENGINE_SNAP_NONE                 = 0,
-       MOTION_ENGINE_NEGATIVE_SNAP_X   = 1,
-       MOTION_ENGINE_POSITIVE_SNAP_X   = 2,
-       MOTION_ENGINE_NEGATIVE_SNAP_Y   = 3,
-       MOTION_ENGINE_POSITIVE_SNAP_Y   = 4,
-       MOTION_ENGINE_NEGATIVE_SNAP_Z   = 5,
-       MOTION_ENGINE_POSITIVE_SNAP_Z   = 6,
-       MOTION_ENGINE_SNAP_LEFT                 = MOTION_ENGINE_NEGATIVE_SNAP_X,
-       MOTION_ENGINE_SNAP_RIGHT                = MOTION_ENGINE_POSITIVE_SNAP_X,
-};
-
-enum motion_shake_event {
-       MOTION_ENGIEN_SHAKE_NONE                = 0,
-       MOTION_ENGIEN_SHAKE_DETECTION   = 1,
-       MOTION_ENGIEN_SHAKE_CONTINUING  = 2,
-       MOTION_ENGIEN_SHAKE_FINISH              = 3,
-       MOTION_ENGINE_SHAKE_BREAK               = 4,
-       MOTION_ENGINE_SHAKE_NONE                = 0,
-       MOTION_ENGINE_SHAKE_DETECTION   = 1,
-       MOTION_ENGINE_SHAKE_CONTINUING  = 2,
-       MOTION_ENGINE_SHAKE_FINISH              = 3,
-};
-
-enum motion_doubletap_event {
-       MOTION_ENGIEN_DOUBLTAP_NONE                     = 0,
-       MOTION_ENGIEN_DOUBLTAP_DETECTION        = 1,
-       MOTION_ENGINE_DOUBLTAP_NONE                     = 0,
-       MOTION_ENGINE_DOUBLTAP_DETECTION        = 1,
-};
-
-enum motion_top_to_bottom_event {
-       MOTION_ENGIEN_TOP_TO_BOTTOM_NONE                = 0,
-       MOTION_ENGIEN_TOP_TO_BOTTOM_WAIT                = 1,
-       MOTION_ENGIEN_TOP_TO_BOTTOM_DETECTION   = 2,
-       MOTION_ENGINE_TOP_TO_BOTTOM_NONE                = 0,
-       MOTION_ENGINE_TOP_TO_BOTTOM_WAIT                = 1,
-       MOTION_ENGINE_TOP_TO_BOTTOM_DETECTION   = 2,
-};
-
-enum motion_direct_call_event_t {
-       MOTION_ENGINE_DIRECT_CALL_NONE,
-       MOTION_ENGINE_DIRECT_CALL_DETECTION,
-};
-
-enum motion_smart_relay_event_t {
-       MOTION_ENGINE_SMART_RELAY_NONE,
-       MOTION_ENGINE_SMART_RELAY_DETECTION,
-};
-
-enum motion_tilt_to_unlock_event_t {
-       MOTION_ENGINE_TILT_TO_UNLOCK_NONE,
-       MOTION_ENGINE_TILT_TO_UNLOCK_DETECTION,
-};
-
-enum motion_lock_execute_camera_event_t {
-       MOTION_ENGINE_LOCK_EXECUTE_CAMERA_NONE,
-       MOTION_ENGINE_LOCK_EXECUTE_CAMERA_L_DETECTION,
-       MOTION_ENGINE_LOCK_EXECUTE_CAMERA_R_DETECTION,
-};
-
-enum motion_smart_alert_t {
-       MOTION_ENGINE_SMART_ALERT_NONE,
-       MOTION_ENGINE_SMART_ALERT_DETECTION,
-};
-
-enum motion_no_move_t {
-       MOTION_ENGINE_NO_MOVE_NONE,
-    MOTION_ENGINE_NO_MOVE_DETECTION,
-};
-
-enum motion_property_id {
-       MOTION_PROPERTY_UNKNOWN = 0,
-       MOTION_PROPERTY_CHECK_ACCEL_SENSOR,
-       MOTION_PROPERTY_CHECK_GYRO_SENSOR,
-       MOTION_PROPERTY_CHECK_GEO_SENSOR,
-       MOTION_PROPERTY_CHECK_PRIXI_SENSOR,
-       MOTION_PROPERTY_CHECK_LIGHT_SENSOR,
-       MOTION_PROPERTY_CHECK_BARO_SENSOR,
-       MOTION_PROPERTY_LCD_TOUCH_ON,
-       MOTION_PROPERTY_LCD_TOUCH_OFF,
-       MOTION_PROPERTY_CHECK_GYRO_CAL_STATUS,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_orientation.h b/src/shared/sensor_orientation.h
deleted file mode 100755 (executable)
index 5852e17..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_ORIENTATION_H__
-#define __SENSOR_ORIENTATION_H__
-
-//! Pre-defined events for the orientation sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_ORIENTATION Orientation Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Orientation sensor.
- * @{
- */
-
-enum orientation_event_type {
-       ORIENTATION_RAW_DATA_EVENT      = (ORIENTATION_SENSOR << 16) | 0x0001,
-       ORIENTATION_CALIBRATION_NEEDED_EVENT    = (ORIENTATION_SENSOR << 16) | 0x0002,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_pressure.h b/src/shared/sensor_pressure.h
deleted file mode 100755 (executable)
index e06b39f..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_PRESSURE_H__
-#define __SENSOR_PRESSURE_H__
-
-//! Pre-defined events for the pressurescope sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_PRESSURE pressure Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the pressure sensor.
- * @{
- */
-
-enum pressure_event_type {
-       PRESSURE_RAW_DATA_EVENT         = (PRESSURE_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_proxi.h b/src/shared/sensor_proxi.h
deleted file mode 100755 (executable)
index 1c99fa4..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_PROXI_H__
-#define __SENSOR_PROXI_H__
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_PROXY Proximity Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Proxymaty sensor.
- * @{
- */
-
-enum proxi_event_type {
-       PROXIMITY_CHANGE_STATE_EVENT    = (PROXIMITY_SENSOR << 16) | 0x0001,
-       PROXIMITY_STATE_EVENT   = (PROXIMITY_SENSOR << 16) | 0x0002,
-       PROXIMITY_DISTANCE_DATA_EVENT   = (PROXIMITY_SENSOR << 16) | 0x0004,
-};
-
-enum proxi_change_state {
-       PROXIMITY_STATE_FAR     = 0,
-       PROXIMITY_STATE_NEAR    = 1,
-};
-
-enum proxi_property_id {
-       PROXIMITY_PROPERTY_UNKNOWN = 0,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_rv.h b/src/shared/sensor_rv.h
deleted file mode 100755 (executable)
index 3e65acc..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_ROTATION_VECTOR_H__
-#define __SENSOR_ROTATION_VECTOR_H__
-
-//! Pre-defined events for the rotation vector sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_RV Rotation Vector Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Rotation Vector sensor.
- * @{
- */
-
-enum rot_event_type {
-       ROTATION_VECTOR_RAW_DATA_EVENT  = (ROTATION_VECTOR_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
-
diff --git a/src/shared/sensor_temperature.h b/src/shared/sensor_temperature.h
deleted file mode 100755 (executable)
index 2af4cc8..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_TEMPERATURE_H__
-#define __SENSOR_TEMPERATURE_H__
-
-//! Pre-defined events for the temperature scope sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_TEMPERATURE temperature Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the temperature sensor.
- * @{
- */
-
-enum temperature_event_type {
-       TEMPERATURE_RAW_DATA_EVENT      = (TEMPERATURE_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_tilt.h b/src/shared/sensor_tilt.h
deleted file mode 100644 (file)
index 8b15d01..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_TILT_H__
-#define __SENSOR_TILT_H__
-
-//! Pre-defined events for the tilt sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_TILT tilt Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the tilt sensor.
- * @{
- */
-
-enum tilt_event_type {
-       TILT_RAW_DATA_EVENT     = (TILT_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_types.h b/src/shared/sensor_types.h
new file mode 100644 (file)
index 0000000..254213f
--- /dev/null
@@ -0,0 +1,267 @@
+#ifndef _SENSOR_TYPES_H_
+#define _SENSOR_TYPES_H_
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+// Accelerometer
+enum accelerometer_event_type {
+       ACCELEROMETER_RAW_DATA_EVENT                                    = (ACCELEROMETER_SENSOR << 16) | 0x0001,
+       ACCELEROMETER_UNPROCESSED_DATA_EVENT                    = (ACCELEROMETER_SENSOR << 16) | 0x0002,
+};
+
+// Gyroscope
+enum gyro_event_type {
+       GYROSCOPE_RAW_DATA_EVENT        = (GYROSCOPE_SENSOR << 16) | 0x0001,
+       GYROSCOPE_UNPROCESSED_DATA_EVENT        = (GYROSCOPE_SENSOR << 16) | 0x0002,
+};
+
+// Geomagnetic
+enum geomag_event_type {
+       GEOMAGNETIC_RAW_DATA_EVENT      = (GEOMAGNETIC_SENSOR << 16) | 0x0001,
+       GEOMAGNETIC_CALIBRATION_NEEDED_EVENT    = (GEOMAGNETIC_SENSOR << 16) | 0x0002,
+       GEOMAGNETIC_UNPROCESSED_DATA_EVENT      = (GEOMAGNETIC_SENSOR << 16) | 0x0003,
+};
+
+// Proximity
+enum proxi_event_type {
+       PROXIMITY_CHANGE_STATE_EVENT    = (PROXIMITY_SENSOR << 16) | 0x0001,
+       PROXIMITY_STATE_EVENT   = (PROXIMITY_SENSOR << 16) | 0x0002,
+       PROXIMITY_DISTANCE_DATA_EVENT   = (PROXIMITY_SENSOR << 16) | 0x0004,
+};
+
+enum proxi_change_state {
+       PROXIMITY_STATE_FAR     = 0,
+       PROXIMITY_STATE_NEAR    = 1,
+};
+
+enum proxi_property_id {
+       PROXIMITY_PROPERTY_UNKNOWN = 0,
+};
+
+// Pressure
+enum pressure_event_type {
+       PRESSURE_RAW_DATA_EVENT         = (PRESSURE_SENSOR << 16) | 0x0001,
+};
+
+// Temperature
+enum temperature_event_type {
+       TEMPERATURE_RAW_DATA_EVENT      = (TEMPERATURE_SENSOR << 16) | 0x0001,
+};
+
+// Light
+enum light_event_type {
+       LIGHT_LUX_DATA_EVENT    = (LIGHT_SENSOR << 16) | 0x0001,
+       LIGHT_LEVEL_DATA_EVENT  = (LIGHT_SENSOR << 16) | 0x0002,
+       LIGHT_CHANGE_LEVEL_EVENT        = (LIGHT_SENSOR << 16) | 0x0004,
+};
+
+enum light_property_id {
+       LIGHT_PROPERTY_UNKNOWN = 0,
+};
+
+// Rotation Vector
+enum rot_event_type {
+       ROTATION_VECTOR_RAW_DATA_EVENT  = (ROTATION_VECTOR_SENSOR << 16) | 0x0001,
+};
+
+// Ultraviolet
+enum ultraviolet_event_type {
+       ULTRAVIOLET_RAW_DATA_EVENT      = (ULTRAVIOLET_SENSOR << 16) | 0x0001,
+};
+
+// Auto rotation
+enum auto_rotation_event_type {
+       AUTO_ROTATION_CHANGE_STATE_EVENT = (AUTO_ROTATION_SENSOR << 16) | 0x0001,
+};
+
+enum auto_rotation_state {
+       AUTO_ROTATION_DEGREE_UNKNOWN = 0,
+       AUTO_ROTATION_DEGREE_0,
+       AUTO_ROTATION_DEGREE_90,
+       AUTO_ROTATION_DEGREE_180,
+       AUTO_ROTATION_DEGREE_270,
+};
+
+// Bio LED Red
+enum bio_led_green_event_type {
+       BIO_LED_RED_RAW_DATA_EVENT      = (BIO_LED_RED_SENSOR << 16) | 0x0001,
+};
+
+// Gaming RV
+enum gaming_rv_event_type {
+       GAMING_RV_RAW_DATA_EVENT        = (GAMING_RV_SENSOR << 16) | 0x0001,
+};
+
+// Context
+enum context_event_type {
+       CONTEXT_REPORT_EVENT    = (CONTEXT_SENSOR << 16) | 0x0001,
+};
+
+enum context_property_id {
+       CONTEXT_PROPERTY_UNKNOWN        = 0,
+};
+
+// Geomagnetic RV
+enum geomagnetic_rv_event_type {
+       GEOMAGNETIC_RV_RAW_DATA_EVENT   = (GEOMAGNETIC_RV_SENSOR << 16) | 0x0001,
+};
+
+// Gravity
+enum gravity_event_type {
+       GRAVITY_RAW_DATA_EVENT  = (GRAVITY_SENSOR << 16) | 0x0001,
+};
+
+// Linear Acceleration
+enum linear_accel_event_type {
+       LINEAR_ACCEL_RAW_DATA_EVENT     = (LINEAR_ACCEL_SENSOR << 16) | 0x0001,
+};
+
+// Motion
+enum motion_event_type {
+       MOTION_ENGINE_EVENT_SNAP                                = (MOTION_SENSOR << 16) | 0x0001,
+       MOTION_ENGINE_EVENT_SHAKE                               = (MOTION_SENSOR << 16) | 0x0002,
+       MOTION_ENGINE_EVENT_DOUBLETAP                   = (MOTION_SENSOR << 16) | 0x0004,
+       MOTION_ENGINE_EVENT_PANNING                             = (MOTION_SENSOR << 16) | 0x0008,
+       MOTION_ENGINE_EVENT_TOP_TO_BOTTOM               = (MOTION_SENSOR << 16) | 0x0010,
+       MOTION_ENGINE_EVENT_DIRECT_CALL                 = (MOTION_SENSOR << 16) | 0x0020,
+       MOTION_ENGINE_EVENT_TILT_TO_UNLOCK              = (MOTION_SENSOR << 16) | 0x0040,
+       MOTION_ENGINE_EVENT_LOCK_EXECUTE_CAMERA = (MOTION_SENSOR << 16) | 0x0080,
+       MOTION_ENGINE_EVENT_SMART_ALERT                 = (MOTION_SENSOR << 16) | 0x0100,
+       MOTION_ENGINE_EVENT_TILT                                = (MOTION_SENSOR << 16) | 0x0200,
+       MOTION_ENGINE_EVENT_PANNING_BROWSE              = (MOTION_SENSOR << 16) | 0x0400,
+       MOTION_ENGINE_EVENT_NO_MOVE                             = (MOTION_SENSOR << 16) | 0x0800,
+       MOTION_ENGINE_EVENT_SHAKE_ALWAYS_ON     = (MOTION_SENSOR << 16) | 0x1000,
+       MOTION_ENGINE_EVENT_SMART_RELAY         = (MOTION_SENSOR << 16) | 0x2000,
+};
+
+enum motion_snap_event {
+       MOTION_ENGIEN_SNAP_NONE                 = 0,
+       MOTION_ENGIEN_NEGATIVE_SNAP_X   = 1,
+       MOTION_ENGIEN_POSITIVE_SNAP_X   = 2,
+       MOTION_ENGIEN_NEGATIVE_SNAP_Y   = 3,
+       MOTION_ENGIEN_POSITIVE_SNAP_Y   = 4,
+       MOTION_ENGIEN_NEGATIVE_SNAP_Z   = 5,
+       MOTION_ENGIEN_POSITIVE_SNAP_Z   = 6,
+       MOTION_ENGIEN_SNAP_LEFT                 = MOTION_ENGIEN_NEGATIVE_SNAP_X,
+       MOTION_ENGIEN_SNAP_RIGHT                = MOTION_ENGIEN_POSITIVE_SNAP_X,
+       MOTION_ENGINE_SNAP_NONE                 = 0,
+       MOTION_ENGINE_NEGATIVE_SNAP_X   = 1,
+       MOTION_ENGINE_POSITIVE_SNAP_X   = 2,
+       MOTION_ENGINE_NEGATIVE_SNAP_Y   = 3,
+       MOTION_ENGINE_POSITIVE_SNAP_Y   = 4,
+       MOTION_ENGINE_NEGATIVE_SNAP_Z   = 5,
+       MOTION_ENGINE_POSITIVE_SNAP_Z   = 6,
+       MOTION_ENGINE_SNAP_LEFT                 = MOTION_ENGINE_NEGATIVE_SNAP_X,
+       MOTION_ENGINE_SNAP_RIGHT                = MOTION_ENGINE_POSITIVE_SNAP_X,
+};
+
+enum motion_shake_event {
+       MOTION_ENGIEN_SHAKE_NONE                = 0,
+       MOTION_ENGIEN_SHAKE_DETECTION   = 1,
+       MOTION_ENGIEN_SHAKE_CONTINUING  = 2,
+       MOTION_ENGIEN_SHAKE_FINISH              = 3,
+       MOTION_ENGINE_SHAKE_BREAK               = 4,
+       MOTION_ENGINE_SHAKE_NONE                = 0,
+       MOTION_ENGINE_SHAKE_DETECTION   = 1,
+       MOTION_ENGINE_SHAKE_CONTINUING  = 2,
+       MOTION_ENGINE_SHAKE_FINISH              = 3,
+};
+
+enum motion_doubletap_event {
+       MOTION_ENGIEN_DOUBLTAP_NONE                     = 0,
+       MOTION_ENGIEN_DOUBLTAP_DETECTION        = 1,
+       MOTION_ENGINE_DOUBLTAP_NONE                     = 0,
+       MOTION_ENGINE_DOUBLTAP_DETECTION        = 1,
+};
+
+enum motion_top_to_bottom_event {
+       MOTION_ENGIEN_TOP_TO_BOTTOM_NONE                = 0,
+       MOTION_ENGIEN_TOP_TO_BOTTOM_WAIT                = 1,
+       MOTION_ENGIEN_TOP_TO_BOTTOM_DETECTION   = 2,
+       MOTION_ENGINE_TOP_TO_BOTTOM_NONE                = 0,
+       MOTION_ENGINE_TOP_TO_BOTTOM_WAIT                = 1,
+       MOTION_ENGINE_TOP_TO_BOTTOM_DETECTION   = 2,
+};
+
+enum motion_direct_call_event_t {
+       MOTION_ENGINE_DIRECT_CALL_NONE,
+       MOTION_ENGINE_DIRECT_CALL_DETECTION,
+};
+
+enum motion_smart_relay_event_t {
+       MOTION_ENGINE_SMART_RELAY_NONE,
+       MOTION_ENGINE_SMART_RELAY_DETECTION,
+};
+
+enum motion_tilt_to_unlock_event_t {
+       MOTION_ENGINE_TILT_TO_UNLOCK_NONE,
+       MOTION_ENGINE_TILT_TO_UNLOCK_DETECTION,
+};
+
+enum motion_lock_execute_camera_event_t {
+       MOTION_ENGINE_LOCK_EXECUTE_CAMERA_NONE,
+       MOTION_ENGINE_LOCK_EXECUTE_CAMERA_L_DETECTION,
+       MOTION_ENGINE_LOCK_EXECUTE_CAMERA_R_DETECTION,
+};
+
+enum motion_smart_alert_t {
+       MOTION_ENGINE_SMART_ALERT_NONE,
+       MOTION_ENGINE_SMART_ALERT_DETECTION,
+};
+
+enum motion_no_move_t {
+       MOTION_ENGINE_NO_MOVE_NONE,
+    MOTION_ENGINE_NO_MOVE_DETECTION,
+};
+
+enum motion_property_id {
+       MOTION_PROPERTY_UNKNOWN = 0,
+       MOTION_PROPERTY_CHECK_ACCEL_SENSOR,
+       MOTION_PROPERTY_CHECK_GYRO_SENSOR,
+       MOTION_PROPERTY_CHECK_GEO_SENSOR,
+       MOTION_PROPERTY_CHECK_PRIXI_SENSOR,
+       MOTION_PROPERTY_CHECK_LIGHT_SENSOR,
+       MOTION_PROPERTY_CHECK_BARO_SENSOR,
+       MOTION_PROPERTY_LCD_TOUCH_ON,
+       MOTION_PROPERTY_LCD_TOUCH_OFF,
+       MOTION_PROPERTY_CHECK_GYRO_CAL_STATUS,
+};
+
+// Orientation
+enum orientation_event_type {
+       ORIENTATION_RAW_DATA_EVENT      = (ORIENTATION_SENSOR << 16) | 0x0001,
+       ORIENTATION_CALIBRATION_NEEDED_EVENT    = (ORIENTATION_SENSOR << 16) | 0x0002,
+};
+
+// Tilt
+enum tilt_event_type {
+       TILT_RAW_DATA_EVENT     = (TILT_SENSOR << 16) | 0x0001,
+};
+
+// Uncalibrated Gyroscope
+enum uncal_gyro_event_type {
+       UNCAL_GYRO_RAW_DATA_EVENT       = (UNCAL_GYROSCOPE_SENSOR << 16) | 0x0001,
+};
+
+// Fusion
+enum fusion_event_type {
+       FUSION_EVENT = (FUSION_SENSOR << 16) | 0x0001,
+       FUSION_UNCAL_GYRO_EVENT = (FUSION_SENSOR << 16) | 0x0002,
+       FUSION_CALIBRATION_NEEDED_EVENT = (FUSION_SENSOR << 16) | 0x0003,
+       FUSION_ORIENTATION_ENABLED = (FUSION_SENSOR << 16) | 0x0004,
+       FUSION_ROTATION_VECTOR_ENABLED = (FUSION_SENSOR << 16) | 0x0005,
+       FUSION_GAMING_ROTATION_VECTOR_ENABLED = (FUSION_SENSOR << 16) | 0x0006,
+       FUSION_GEOMAGNETIC_ROTATION_VECTOR_ENABLED = (FUSION_SENSOR << 16) | 0x0007,
+       FUSION_TILT_ENABLED = (FUSION_SENSOR << 16) | 0x0008,
+       FUSION_UNCAL_GYRO_ENABLED = (FUSION_SENSOR << 16) | 0x0009,
+};
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _SENSOR_TYPES_H_ */
diff --git a/src/shared/sensor_ultraviolet.h b/src/shared/sensor_ultraviolet.h
deleted file mode 100644 (file)
index 0116221..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_ULTRAVIOLET_H__
-#define __SENSOR_ULTRAVIOLET_H__
-
-//! Pre-defined events for the ultraviolet sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_ULTRAVIOLET Ultra Violet Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the ultraviolet sensor.
- * @{
- */
-
-enum ultraviolet_event_type {
-       ULTRAVIOLET_RAW_DATA_EVENT      = (ULTRAVIOLET_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
diff --git a/src/shared/sensor_uncal_gyro.h b/src/shared/sensor_uncal_gyro.h
deleted file mode 100644 (file)
index 92494a7..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * libsensord
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef __SENSOR_UNCAL_GYRO_H__
-#define __SENSOR_UNCAL_GYRO_H__
-
-//! Pre-defined events for the uncal gyroscope sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup UNCAL_SENSOR_GYRO Gyro Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the gyro sensor.
- * @{
- */
-
-enum uncal_gyro_event_type {
-       UNCAL_GYRO_RAW_DATA_EVENT       = (UNCAL_GYROSCOPE_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file