diff options
author | Bhavna Sharma <sbhavna@codeaurora.org> | 2018-01-29 14:32:06 +0530 |
---|---|---|
committer | Bhavna Sharma <sbhavna@codeaurora.org> | 2018-02-01 22:11:32 -0800 |
commit | 5b2f22434981dfa456c5a64f7fd105d7ee7df2ba (patch) | |
tree | 4712c027d7b47ff8931bdf6a1a487718349fd537 /gnss/GnssAdapter.h | |
parent | 07883c075d0bd54db95b559b44644c1d4a9e32b6 (diff) | |
download | gps-5b2f22434981dfa456c5a64f7fd105d7ee7df2ba.tar.gz |
GPS: integrate GNSS engine hub with Gnss Adapter
Integrate GNSS engine hub with Gnss Adapter using dynamically
loadable .so file.
Change-Id: I0420a17628db96447c01b8821e54782f7d992aec
CRs-fixed: 2165862
Diffstat (limited to 'gnss/GnssAdapter.h')
-rw-r--r-- | gnss/GnssAdapter.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gnss/GnssAdapter.h b/gnss/GnssAdapter.h index 99ce5c9..cf871ba 100644 --- a/gnss/GnssAdapter.h +++ b/gnss/GnssAdapter.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2017, The Linux Foundation. All rights reserved. +/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -32,6 +32,7 @@ #include <LocAdapterBase.h> #include <LocDualContext.h> #include <UlpProxyBase.h> +#include <EngineHubProxyBase.h> #include <LocationAPI.h> #include <Agps.h> #include <SystemStatus.h> @@ -84,6 +85,9 @@ class GnssAdapter : public LocAdapterBase { /* ==== ULP ============================================================================ */ UlpProxyBase* mUlpProxy; + /* ==== Engine Hub ===================================================================== */ + EngineHubProxyBase* mEngHubProxy; + /* ==== CLIENT ========================================================================= */ typedef std::map<LocationAPI*, LocationCallbacks> ClientDataMap; ClientDataMap mClientData; @@ -198,6 +202,7 @@ public: void setControlCallbacksCommand(LocationControlCallbacks& controlCallbacks); void readConfigCommand(); void setConfigCommand(); + void initEngHubProxyCommand(); uint32_t* gnssUpdateConfigCommand(GnssConfig config); uint32_t gnssDeleteAidingDataCommand(GnssAidingData& data); void gnssUpdateXtraThrottleCommand(const bool enabled); @@ -221,6 +226,7 @@ public: bool resolveInAddress(const char* hostAddress, struct in_addr* inAddress); virtual bool isInSession() { return !mTrackingSessions.empty(); } void initDefaultAgps(); + bool initEngHubProxy(); /* ==== REPORTS ======================================================================== */ /* ======== EVENTS ====(Called from QMI/ULP Thread)===================================== */ @@ -286,7 +292,6 @@ public: void injectLocationCommand(double latitude, double longitude, float accuracy); void injectTimeCommand(int64_t time, int64_t timeReference, int32_t uncertainty); - }; #endif //GNSS_ADAPTER_H |