X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=common%2Flibsensors%2FSensorIIODev.h;fp=common%2Flibsensors%2FSensorIIODev.h;h=2372ad04d6b7dc2980ac14100d56f4d70e9fe8b0;hb=8464eb7bdd94f2ce375d88c56293e6d168e75336;hp=e01521a958bc561fe7c857589979a6d564780ba0;hpb=8aa41d6e2fa3728a8260220b10de0527560fad60;p=android-x86%2Fhardware-intel-libsensors.git diff --git a/common/libsensors/SensorIIODev.h b/common/libsensors/SensorIIODev.h index e01521a..2372ad0 100644 --- a/common/libsensors/SensorIIODev.h +++ b/common/libsensors/SensorIIODev.h @@ -76,6 +76,7 @@ private: long units_value; int retry_count; unsigned char *raw_buffer; + int mRefCount; int discover(); int EnableIIODevice(); @@ -128,5 +129,7 @@ public: SensorIIODev(const std::string& dev_name, const std::string& units, const std::string& exponent, const std::string& channel_prefix); SensorIIODev(const std::string& dev_name, const std::string& units, const std::string& exponent, const std::string& channel_prefix, int retry_cnt); + // start/stop stream without changing "enabled" status. For slaves. + int startStop(int enabled); }; #endif