Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 074111d1 authored by Chris Phoenix's avatar Chris Phoenix
Browse files

example-light HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds

Bug: 33844934
Change-Id: I3c04d97552ec1d7fa0cb2b24fe5064186550a0e7
parent aadf1586
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -28,10 +28,8 @@ using android::sp;
using android::hardware::light::V2_0::ILight;

int main() {
    const char instance[] = "light";

    android::sp<ILight> service = new Light();
    configureRpcThreadpool(1, true /*callerWillJoin*/);
    service->registerAsService(instance);
    service->registerAsService();
    joinRpcThreadpool();
}