summaryrefslogtreecommitdiffstats
path: root/gps/libloc_api_50001/loc.h
diff options
context:
space:
mode:
Diffstat (limited to 'gps/libloc_api_50001/loc.h')
-rwxr-xr-x[-rw-r--r--]gps/libloc_api_50001/loc.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/gps/libloc_api_50001/loc.h b/gps/libloc_api_50001/loc.h
index 233b34c..357ce51 100644..100755
--- a/gps/libloc_api_50001/loc.h
+++ b/gps/libloc_api_50001/loc.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
+/* Copyright (c) 2011, 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
@@ -9,7 +9,7 @@
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
- * * Neither the name of Code Aurora Forum, Inc. nor the names of its
+ * * Neither the name of The Linux Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
@@ -39,6 +39,7 @@ extern "C" {
#include <hardware/gps.h>
#define MIN_POSSIBLE_FIX_INTERVAL 1000 /* msec */
+#define XTRA_DATA_MAX_SIZE 100000 /*bytes*/
typedef enum loc_server_type {
LOC_AGPS_CDMA_PDE_SERVER,
@@ -54,7 +55,8 @@ typedef enum loc_position_mode_type {
LOC_POSITION_MODE_RESERVED_1,
LOC_POSITION_MODE_RESERVED_2,
LOC_POSITION_MODE_RESERVED_3,
- LOC_POSITION_MODE_RESERVED_4
+ LOC_POSITION_MODE_RESERVED_4,
+ LOC_POSITION_MODE_RESERVED_5
} LocPositionMode;
typedef void (*loc_location_cb_ext) (GpsLocation* location, void* locExt);
@@ -72,6 +74,7 @@ typedef struct {
gps_create_thread create_thread_cb;
loc_ext_parser location_ext_parser;
loc_ext_parser sv_ext_parser;
+ gps_request_utc_time request_utc_time_cb;
} LocCallbacks;
enum loc_sess_status {
@@ -80,6 +83,15 @@ enum loc_sess_status {
LOC_SESS_FAILURE
};
+typedef uint32_t LocPosTechMask;
+#define LOC_POS_TECH_MASK_DEFAULT ((LocPosTechMask)0x00000000)
+#define LOC_POS_TECH_MASK_SATELLITE ((LocPosTechMask)0x00000001)
+#define LOC_POS_TECH_MASK_CELLID ((LocPosTechMask)0x00000002)
+#define LOC_POS_TECH_MASK_WIFI ((LocPosTechMask)0x00000004)
+#define LOC_POS_TECH_MASK_SENSORS ((LocPosTechMask)0x00000008)
+#define LOC_POS_TECH_MASK_REFERENCE_LOCATION ((LocPosTechMask)0x00000010)
+#define LOC_POS_TECH_MASK_INJECTED_COARSE_POSITION ((LocPosTechMask)0x00000020)
+
void loc_ulp_msg_sender(void* loc_eng_data_p, void* msg);
#ifdef __cplusplus