summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2019-11-05 17:02:51 -0800
committerDavid Anderson <dvander@google.com>2019-11-05 17:05:05 -0800
commit9441a1eb984b81b76bd4b58f6511b70513c6219f (patch)
tree06bdc55c8f010809ecd877c2a44d0d413fbb2362 /boot
parentf581c60f088350ee5fd65af24e8422f24b830aeb (diff)
IBootControl: Use new defaultPassthroughServiceImplementation signature.
Using the new signature ensures that the device actually provides an IBootControl 1.1 implementation. Bug: N/A Test: manual test Change-Id: I0ddc1ed71535a31c887d94196295baa46ed37d3c
Diffstat (limited to 'boot')
-rw-r--r--boot/1.1/default/service.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/boot/1.1/default/service.cpp b/boot/1.1/default/service.cpp
index 93eaedab8d..89251b5c92 100644
--- a/boot/1.1/default/service.cpp
+++ b/boot/1.1/default/service.cpp
@@ -15,12 +15,13 @@
*/
#define LOG_TAG "android.hardware.boot@1.1-service"
-#include <android/hardware/boot/1.0/IBootControl.h>
+#include <android/hardware/boot/1.1/IBootControl.h>
#include <hidl/LegacySupport.h>
using android::hardware::defaultPassthroughServiceImplementation;
-using ::android::hardware::boot::V1_0::IBootControl;
+using IBootControl_V1_0 = android::hardware::boot::V1_0::IBootControl;
+using IBootControl_V1_1 = android::hardware::boot::V1_1::IBootControl;
int main(int /* argc */, char* /* argv */[]) {
- return defaultPassthroughServiceImplementation<IBootControl>();
+ return defaultPassthroughServiceImplementation<IBootControl_V1_0, IBootControl_V1_1>();
}