blob: 8212ab9ee37f5913a5ca5a27dee7411c0e9ee2e7 [file] [log] [blame]
Polina Bondarenko254e2fe2016-10-11 16:39:23 +02001#ifndef HIDL_GENERATED_android_hardware_thermal_V1_0_Thermal_H_
2#define HIDL_GENERATED_android_hardware_thermal_V1_0_Thermal_H_
3
4#include <android/hardware/thermal/1.0/IThermal.h>
5#include <hidl/Status.h>
6#include <hardware/thermal.h>
7
8#include <hidl/MQDescriptor.h>
9
10namespace android {
11namespace hardware {
12namespace thermal {
13namespace V1_0 {
14namespace implementation {
15
16using ::android::hardware::thermal::V1_0::CoolingDevice;
17using ::android::hardware::thermal::V1_0::CpuUsage;
18using ::android::hardware::thermal::V1_0::IThermal;
19using ::android::hardware::thermal::V1_0::Temperature;
20using ::android::hardware::thermal::V1_0::ThermalStatus;
21using ::android::hardware::Return;
22using ::android::hardware::Void;
23using ::android::hardware::hidl_vec;
24using ::android::hardware::hidl_string;
25using ::android::sp;
26
27struct Thermal : public IThermal {
28 Thermal(thermal_module_t* module);
29 // Methods from ::android::hardware::thermal::V1_0::IThermal follow.
30 Return<void> getTemperatures(getTemperatures_cb _hidl_cb) override;
31 Return<void> getCpuUsages(getCpuUsages_cb _hidl_cb) override;
32 Return<void> getCoolingDevices(getCoolingDevices_cb _hidl_cb) override;
33 private:
34 thermal_module_t* mModule;
35};
36
37extern "C" IThermal* HIDL_FETCH_IThermal(const char* name);
38
39} // namespace implementation
40} // namespace V1_0
41} // namespace thermal
42} // namespace hardware
43} // namespace android
44
45#endif // HIDL_GENERATED_android_hardware_thermal_V1_0_Thermal_H_