From e232986d84deb7178d1a57cc7f1e4d24cbaeeb3c Mon Sep 17 00:00:00 2001 From: Wei Chen Date: Thu, 15 Nov 2018 09:41:26 -0800 Subject: GPS location API: support destroy with callback for completion Support Location API destroy function with callback. Location API client that passes callback to Location API need to wait for the destroy complete callback to be invoked before releasing the memory that holds the callback Change-Id: I29b1c6d46feb79c789e6f1ec1500c941b022a3ac CRs-fixed: 2349398 --- location/LocationDataTypes.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'location/LocationDataTypes.h') diff --git a/location/LocationDataTypes.h b/location/LocationDataTypes.h index f35b220..61598be 100644 --- a/location/LocationDataTypes.h +++ b/location/LocationDataTypes.h @@ -1274,6 +1274,9 @@ typedef std::function locationSystemInfoCallback; +typedef std::function locationApiDestroyCompleteCallback; + typedef struct { size_t size; // set to sizeof(LocationCallbacks) capabilitiesCallback capabilitiesCb; // mandatory -- cgit v1.2.3