sensord: change to use is_started() instead of using member variable directly
[platform/core/system/sensord.git] / src / client / sensor_handle_info.h
index d551952..28e5a01 100644 (file)
 #include <string.h>
 #include <unordered_map>
 
-typedef std::unordered_map<unsigned int,reg_event_info> event_info_map;
+typedef std::unordered_map<unsigned int, reg_event_info> event_info_map;
 
 class sensor_handle_info {
 public:
        int m_handle;
        sensor_id_t m_sensor_id;
        int m_sensor_state;
-       int m_sensor_option;
+       int m_pause_policy;
        int m_bad_accuracy;
        int m_accuracy;
        sensor_accuracy_changed_cb_t m_accuracy_cb;
@@ -42,7 +42,7 @@ public:
        sensor_handle_info();
        ~sensor_handle_info();
 
-       bool add_reg_event_info(unsigned int event_type, unsigned int interval, unsigned int latency, int cb_type, void *cb,void *user_data);
+       bool add_reg_event_info(unsigned int event_type, unsigned int interval, unsigned int latency, void *cb, void *user_data);
        bool delete_reg_event_info(unsigned int event_type);
 
        bool change_reg_event_batch(unsigned int event_type, unsigned int interval, unsigned int latency);
@@ -54,10 +54,12 @@ public:
 
        void clear_all_events(void);
        static unsigned long long renew_event_id(void);
+
+       bool is_started(void);
+
 private:
        event_info_map m_reg_event_infos;
        static unsigned long long m_event_id;
 };
 
-
 #endif /* _SENSOR_HANDLE_INFO_H_ */