diff options
author | Arne Coucheron <arco68@gmail.com> | 2020-05-18 06:29:20 +0200 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2020-05-26 00:18:25 +0200 |
commit | aaaa0eb529480e73088c91e0e49b3dc554730b56 (patch) | |
tree | a738a5bfbe7560661a273799b8d703416242c8be /gnss/1.0-legacy/service.cpp | |
parent | 08f0000e15a28f1622e4ef0c6d17595714c1be58 (diff) | |
download | android_hardware_lineage_interfaces-aaaa0eb529480e73088c91e0e49b3dc554730b56.tar.gz android_hardware_lineage_interfaces-aaaa0eb529480e73088c91e0e49b3dc554730b56.tar.bz2 android_hardware_lineage_interfaces-aaaa0eb529480e73088c91e0e49b3dc554730b56.zip |
gnss: Rename to legacy
Change-Id: I0d71f1a32d82a9a24eea0e3dffe7c8b463d17d9d
Diffstat (limited to 'gnss/1.0-legacy/service.cpp')
-rw-r--r-- | gnss/1.0-legacy/service.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gnss/1.0-legacy/service.cpp b/gnss/1.0-legacy/service.cpp new file mode 100644 index 0000000..9771fbb --- /dev/null +++ b/gnss/1.0-legacy/service.cpp @@ -0,0 +1,17 @@ +#define LOG_TAG "android.hardware.gnss@1.0-service.legacy" + +#include <android/hardware/gnss/1.0/IGnss.h> + +#include <hidl/LegacySupport.h> + +#include <binder/ProcessState.h> + +using android::hardware::gnss::V1_0::IGnss; +using android::hardware::defaultPassthroughServiceImplementation; + +int main() { + // The GNSS HAL may communicate to other vendor components via + // /dev/vndbinder + android::ProcessState::initWithDriver("/dev/vndbinder"); + return defaultPassthroughServiceImplementation<IGnss>(); +} |