summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkibak.yoon <kibak.yoon@samsung.com>2016-02-02 20:58:50 +0900
committerkibak.yoon <kibak.yoon@samsung.com>2016-02-02 21:04:54 +0900
commit397b09045230766f027ddd9edb0b65d38d2a4312 (patch)
tree67757d2e3084b8b8cdb30b7dae37fdd9584d202f
parent5182b486e32853d4473e0d24691551df5b6468e3 (diff)
downloadsensor-plugins-tm1-devel/tizen_3.0.tar.gz
sensor-plugins-tm1-devel/tizen_3.0.tar.bz2
sensor-plugins-tm1-devel/tizen_3.0.zip
sensor-hal: unify code style for class bracketsdevel/tizen_3.0
Change-Id: I59688a412cf7f33a572574e30a76b84e20655193 Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
-rw-r--r--src/accel/accel.h3
-rw-r--r--src/sensor_hal.h4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/accel/accel.h b/src/accel/accel.h
index 05e8561..0abc345 100644
--- a/src/accel/accel.h
+++ b/src/accel/accel.h
@@ -23,8 +23,7 @@
#include <sensor_hal.h>
#include <string>
-class accel_device : public sensor_device
-{
+class accel_device : public sensor_device {
public:
accel_device();
virtual ~accel_device();
diff --git a/src/sensor_hal.h b/src/sensor_hal.h
index e31c273..8b51bad 100644
--- a/src/sensor_hal.h
+++ b/src/sensor_hal.h
@@ -156,8 +156,7 @@ typedef int (*create_t)(sensor_device_t **devices);
* Sensor device interface
* 1 device must be abstracted from 1 device event node
*/
-class sensor_device
-{
+class sensor_device {
public:
virtual ~sensor_device() {}
@@ -178,6 +177,7 @@ public:
virtual int read_fd(uint16_t **ids) = 0;
virtual int get_data(uint16_t id, sensor_data_t **data, int *length) = 0;
+
virtual bool flush(uint16_t id) = 0;
};
#endif /* __cplusplus */