diff options
Diffstat (limited to 'gnss/2.1/default/service.cpp')
-rw-r--r-- | gnss/2.1/default/service.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnss/2.1/default/service.cpp b/gnss/2.1/default/service.cpp index 5e004d5697..4f282cfdaf 100644 --- a/gnss/2.1/default/service.cpp +++ b/gnss/2.1/default/service.cpp @@ -18,17 +18,17 @@ #include <hidl/HidlSupport.h> #include <hidl/HidlTransportSupport.h> -#include "Gnss.h" +#include "v2_1/GnssTemplate.h" using ::android::OK; using ::android::sp; using ::android::hardware::configureRpcThreadpool; using ::android::hardware::joinRpcThreadpool; +using ::android::hardware::gnss::common::implementation::GnssTemplate; using ::android::hardware::gnss::V2_1::IGnss; -using ::android::hardware::gnss::V2_1::implementation::Gnss; int main(int /* argc */, char* /* argv */[]) { - sp<IGnss> gnss = new Gnss(); + sp<IGnss> gnss = new GnssTemplate<IGnss>(); configureRpcThreadpool(1, true /* will join */); if (gnss->registerAsService() != OK) { ALOGE("Could not register gnss 2.1 service."); |