diff options
author | Tapas Dey <tdey@codeaurora.org> | 2020-05-06 10:37:54 +0530 |
---|---|---|
committer | Tapas Dey <tdey@codeaurora.org> | 2020-05-21 10:42:59 +0530 |
commit | caa7ca612a8f57ca4e2f020d030f5d21e84ed4ad (patch) | |
tree | 8dce70df4a27e314065ff18433b6162a8ff41fd4 /2.0/default/service.cpp | |
parent | bdd6847f89e15a51d2ab676a4f3cb1e9ebc80baa (diff) |
NFC: Fix compilation issuesHEADsugisawa-pn5xx
Modified code to fix build errors.
Removed inclusion of unwanted library
from build rules.
Change-Id: I2d56bfb9b36249a5bb6841119974bd743f20f93e
Diffstat (limited to '2.0/default/service.cpp')
-rw-r--r-- | 2.0/default/service.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/2.0/default/service.cpp b/2.0/default/service.cpp index 1ed3aca..f5d820a 100644 --- a/2.0/default/service.cpp +++ b/2.0/default/service.cpp @@ -32,6 +32,7 @@ #include <hidl/LegacySupport.h> #include "Nfc.h" #include "NqNfc.h" +#include "NxpNfcLegacy.h" using android::hardware::nfc::V1_2::INfc; using android::hardware::nfc::V1_2::implementation::Nfc; @@ -39,6 +40,8 @@ using android::hardware::configureRpcThreadpool; using android::hardware::joinRpcThreadpool; using vendor::nxp::hardware::nfc::V2_0::INqNfc; using vendor::nxp::hardware::nfc::V2_0::implementation::NqNfc; +using vendor::nxp::nxpnfclegacy::V1_0::INxpNfcLegacy; +using vendor::nxp::nxpnfclegacy::V1_0::implementation::NxpNfcLegacy; using android::OK; using android::sp; using android::status_t; @@ -55,6 +58,10 @@ int main() { status = nq_nfc_service->registerAsService(); ALOGE_IF(status != OK, "Error while registering nqnfc vendor service: %d", status); + sp<INxpNfcLegacy> nxp_nfc_legacy_service = new NxpNfcLegacy(); + status = nxp_nfc_legacy_service->registerAsService(); + ALOGE_IF(status != OK, "Error while registering NxpNfcLegacy vendor service: %d", status); + joinRpcThreadpool(); return status; } |