blob: 73af4f4f11a3e42c21d9694524a5fc634f9972cb [file] [log] [blame]
Connor O'Brienfe25fd82016-10-10 12:31:37 -07001#ifndef HIDL_GENERATED_android_hardware_boot_V1_0_BootControl_H_
2#define HIDL_GENERATED_android_hardware_boot_V1_0_BootControl_H_
3
4#include <android/hardware/boot/1.0/IBootControl.h>
5#include <hidl/Status.h>
6
7#include <hidl/MQDescriptor.h>
8namespace android {
9namespace hardware {
10namespace boot {
11namespace V1_0 {
12namespace implementation {
13
14using ::android::hardware::boot::V1_0::BoolResult;
15using ::android::hardware::boot::V1_0::CommandResult;
16using ::android::hardware::boot::V1_0::IBootControl;
17using ::android::hardware::Return;
18using ::android::hardware::Void;
19using ::android::hardware::hidl_vec;
20using ::android::hardware::hidl_string;
21using ::android::sp;
22
23struct BootControl : public IBootControl {
24 BootControl(boot_control_module_t* module);
25 // Methods from ::android::hardware::boot::V1_0::IBootControl follow.
26 Return<uint32_t> getNumberSlots() override;
27 Return<uint32_t> getCurrentSlot() override;
28 Return<void> markBootSuccessful(markBootSuccessful_cb _hidl_cb) override;
29 Return<void> setActiveBootSlot(uint32_t slot, setActiveBootSlot_cb _hidl_cb) override;
30 Return<void> setSlotAsUnbootable(uint32_t slot, setSlotAsUnbootable_cb _hidl_cb) override;
31 Return<BoolResult> isSlotBootable(uint32_t slot) override;
32 Return<BoolResult> isSlotMarkedSuccessful(uint32_t slot) override;
33 Return<void> getSuffix(uint32_t slot, getSuffix_cb _hidl_cb) override;
34private:
35 boot_control_module_t* mModule;
36};
37
38extern "C" IBootControl* HIDL_FETCH_IBootControl(const char* name);
39
40} // namespace implementation
41} // namespace V1_0
42} // namespace boot
43} // namespace hardware
44} // namespace android
45
46#endif // HIDL_GENERATED_android_hardware_boot_V1_0_BootControl_H_