summaryrefslogtreecommitdiff
path: root/location
diff options
context:
space:
mode:
Diffstat (limited to 'location')
-rw-r--r--location/LocationDataTypes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/location/LocationDataTypes.h b/location/LocationDataTypes.h
index a9778e2..1b82e47 100644
--- a/location/LocationDataTypes.h
+++ b/location/LocationDataTypes.h
@@ -33,6 +33,7 @@
#include <stdint.h>
#include <functional>
#include <list>
+#include <string.h>
#define GNSS_NI_REQUESTOR_MAX (256)
#define GNSS_NI_MESSAGE_ID_MAX (2048)
@@ -631,6 +632,14 @@ struct TrackingOptions : LocationOptions {
minDistance = options.minDistance;
mode = options.mode;
}
+ inline LocationOptions getLocationOptions() {
+ LocationOptions locOption;
+ locOption.size = sizeof(locOption);
+ locOption.minDistance = minDistance;
+ locOption.minInterval = minInterval;
+ locOption.mode = mode;
+ return locOption;
+ }
};
struct BatchingOptions : LocationOptions {