Merge "Check registerPassthroughServiceImplementation return status"
This commit is contained in:
commit
e8c4983bc7
1 changed files with 9 additions and 2 deletions
|
@ -31,7 +31,14 @@ using android::hardware::drm::V1_0::IDrmFactory;
|
|||
int main() {
|
||||
ALOGD("android.hardware.drm@1.0-service starting...");
|
||||
configureRpcThreadpool(8, true /* callerWillJoin */);
|
||||
registerPassthroughServiceImplementation<IDrmFactory>("drm");
|
||||
registerPassthroughServiceImplementation<ICryptoFactory>("crypto");
|
||||
android::status_t status =
|
||||
registerPassthroughServiceImplementation<IDrmFactory>("drm");
|
||||
LOG_ALWAYS_FATAL_IF(
|
||||
status != android::OK,
|
||||
"Error while registering drm service: %d", status);
|
||||
status = registerPassthroughServiceImplementation<ICryptoFactory>("crypto");
|
||||
LOG_ALWAYS_FATAL_IF(
|
||||
status != android::OK,
|
||||
"Error while registering crypto service: %d", status);
|
||||
joinRpcThreadpool();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue