summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-10-30 16:52:47 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2014-11-21 10:38:09 +0100
commitbe4fc157f219420d3699bfb3e200fa290ad9466d (patch)
tree38a6e08ae3329dbfd084a39295c65e88f723b2c5
parente42db35528189200d48e3052c4abac03a43b7b10 (diff)
downloadefl-be4fc157f219420d3699bfb3e200fa290ad9466d.tar.gz
elocation: Add enums for GeoClue2 accuracy levels
Some stay the same between 1 and 2 and others have changed. Mark enums that are only available on one version.
-rw-r--r--src/lib/elocation/Elocation.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/lib/elocation/Elocation.h b/src/lib/elocation/Elocation.h
index 1e79ab0f1d..4c5e48291a 100644
--- a/src/lib/elocation/Elocation.h
+++ b/src/lib/elocation/Elocation.h
@@ -97,12 +97,15 @@ EAPI extern int ELOCATION_EVENT_META_READY; /**< Meta provider is ready to be us
*/
typedef enum {
ELOCATION_ACCURACY_LEVEL_NONE = 0,
- ELOCATION_ACCURACY_LEVEL_COUNTRY,
- ELOCATION_ACCURACY_LEVEL_REGION,
- ELOCATION_ACCURACY_LEVEL_LOCALITY,
- ELOCATION_ACCURACY_LEVEL_POSTALCODE,
- ELOCATION_ACCURACY_LEVEL_STREET,
- ELOCATION_ACCURACY_LEVEL_DETAILED,
+ ELOCATION_ACCURACY_LEVEL_COUNTRY = 1,
+ ELOCATION_ACCURACY_LEVEL_REGION, /* GeoClue1 only */
+ ELOCATION_ACCURACY_LEVEL_LOCALITY, /* GeoClue1 only */
+ ELOCATION_ACCURACY_LEVEL_POSTALCODE, /* GeoClue1 only */
+ ELOCATION_ACCURACY_LEVEL_CITY = 4, /* GeoClue2 only */
+ ELOCATION_ACCURACY_LEVEL_NEIGHBORHOOD = 5, /* GeoClue2 only */
+ ELOCATION_ACCURACY_LEVEL_STREET = 6,
+ ELOCATION_ACCURACY_LEVEL_DETAILED, /* GeoClue1 only */
+ ELOCATION_ACCURACY_LEVEL_EXACT = 8, /* GeoClue2 only */
} Elocation_Accuracy_Level;
/**@}*/