mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "example-light HAL uses "default" service name"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e445f52e23
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user