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.
This commit is contained in:
Stefan Schmidt 2014-10-30 16:52:47 +01:00
parent e42db35528
commit be4fc157f2
1 changed files with 9 additions and 6 deletions

View File

@ -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;
/**@}*/