diff options
Diffstat (limited to 'en/devices/architecture/hidl-cpp/interfaces.html')
-rw-r--r-- | en/devices/architecture/hidl-cpp/interfaces.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/en/devices/architecture/hidl-cpp/interfaces.html b/en/devices/architecture/hidl-cpp/interfaces.html index 5047e8d0..285c22b5 100644 --- a/en/devices/architecture/hidl-cpp/interfaces.html +++ b/en/devices/architecture/hidl-cpp/interfaces.html @@ -101,9 +101,9 @@ later:</p> <pre class="prettyprint"> ::android::sp<IFoo> myFoo = new FooImpl(); -::android::sp<IFoo> myFoo = new FooAnotherImpl(); -myFoo->registerAsService(); -mySecondFoo->registerAsService("another_foo"); +::android::sp<IFoo> mySecondFoo = new FooAnotherImpl(); +status_t status = myFoo->registerAsService(); +status_t anotherStatus = mySecondFoo->registerAsService("another_foo"); </pre> <p>The <code>hwservicemanager</code> treats the combination of |