summaryrefslogtreecommitdiff
path: root/bootctrl/LegacyBootControl.h
diff options
context:
space:
mode:
Diffstat (limited to 'bootctrl/LegacyBootControl.h')
-rw-r--r--bootctrl/LegacyBootControl.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/bootctrl/LegacyBootControl.h b/bootctrl/LegacyBootControl.h
index d50e789..64bc797 100644
--- a/bootctrl/LegacyBootControl.h
+++ b/bootctrl/LegacyBootControl.h
@@ -13,25 +13,24 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#ifndef ANDROID_HARDWARE_BOOT_V1_0_BOOTCONTROL_H
-#define ANDROID_HARDWARE_BOOT_V1_0_BOOTCONTROL_H
-#include <android/hardware/boot/1.0/IBootControl.h>
-#include <hidl/Status.h>
+#pragma once
#include <hidl/MQDescriptor.h>
+#include <hidl/Status.h>
+
+#include "BootControlShared.h"
+
namespace android {
namespace hardware {
namespace boot {
-namespace V1_0 {
+namespace V1_1 {
namespace implementation {
-using ::android::sp;
using ::android::hardware::Return;
using ::android::hardware::boot::V1_0::BoolResult;
-using ::android::hardware::boot::V1_0::IBootControl;
-struct BootControl : public IBootControl {
+struct BootControl : public BootControlShared {
BootControl(boot_control_module_t *module);
// Methods from ::android::hardware::boot::V1_0::IBootControl follow.
Return<uint32_t> getNumberSlots() override;
@@ -50,9 +49,7 @@ struct BootControl : public IBootControl {
extern "C" IBootControl *HIDL_FETCH_IBootControl(const char *name);
} // namespace implementation
-} // namespace V1_0
+} // namespace V1_1
} // namespace boot
} // namespace hardware
} // namespace android
-
-#endif // ANDROID_HARDWARE_BOOT_V1_0_BOOTCONTROL_H