diff options
author | Dante Russo <drusso@codeaurora.org> | 2017-02-28 16:45:47 -0800 |
---|---|---|
committer | Dante Russo <drusso@codeaurora.org> | 2017-02-28 16:47:50 -0800 |
commit | c85c8ff673e4347cea911b353de120f639b39b83 (patch) | |
tree | 5fe203230801cf76dc1823b6d05a44ea94663883 /core/LocAdapterProxyBase.h | |
parent | 4bb940c0679ab23c9b8954bcb9ad8da5ede093cd (diff) | |
download | gps-c85c8ff673e4347cea911b353de120f639b39b83.tar.gz |
LocationAPI implementation
Implementation of LocationAPI into gps hal
to be a common API that is called into by platform
specific APIs.
Change-Id: Ie5a7bd217d4ae2175ad49e6aca2fb6ecd4702f3b
CRs-fixed: 1112712
Diffstat (limited to 'core/LocAdapterProxyBase.h')
-rw-r--r-- | core/LocAdapterProxyBase.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/core/LocAdapterProxyBase.h b/core/LocAdapterProxyBase.h index 82cba6b..044f59b 100644 --- a/core/LocAdapterProxyBase.h +++ b/core/LocAdapterProxyBase.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2014 The Linux Foundation. All rights reserved. +/* Copyright (c) 2014, 2016-2017 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 @@ -51,22 +51,25 @@ protected: mLocAdapterBase->updateEvtMask(event,isEnabled); } + inline uint32_t generateSessionId() { + return mLocAdapterBase->generateSessionId(); + } public: inline ContextBase* getContext() const { return mLocAdapterBase->getContext(); } + inline virtual void handleEngineUpEvent() {}; inline virtual void handleEngineDownEvent() {}; - inline virtual bool reportPosition(UlpLocation &location, - GpsLocationExtended &locationExtended, - enum loc_sess_status status, - LocPosTechMask loc_technology_mask) { + inline virtual void reportPositionEvent(UlpLocation &location, + GpsLocationExtended &locationExtended, + enum loc_sess_status status, + LocPosTechMask loc_technology_mask) { (void)location; (void)locationExtended; (void)status; (void)loc_technology_mask; - return false; } }; |