diff options
Diffstat (limited to 'sensors/2.0/default/Sensor.h')
-rw-r--r-- | sensors/2.0/default/Sensor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sensors/2.0/default/Sensor.h b/sensors/2.0/default/Sensor.h index 7fb927a1b..3ab2299a2 100644 --- a/sensors/2.0/default/Sensor.h +++ b/sensors/2.0/default/Sensor.h @@ -40,7 +40,7 @@ namespace implementation { class ISensorsEventCallback { public: virtual ~ISensorsEventCallback(){}; - virtual void postEvents(const std::vector<Event>& events) = 0; + virtual void postEvents(const std::vector<Event>& events, bool wakeup) = 0; }; class Sensor { @@ -62,6 +62,8 @@ class Sensor { virtual std::vector<Event> readEvents(); static void startThread(Sensor* sensor); + bool isWakeUpSensor(); + bool mIsEnabled; int64_t mSamplingPeriodNs; int64_t mLastSampleTimeNs; |