/usr/include/geoclue/geoclue-types.h is in libgeoclue-dev 0.12.0-1ubuntu12.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | /*
* Geoclue
* geoclue-types.h - Types for Geoclue
*
* Author: Iain Holmes <iain@openedhand.com>
* Copyright 2007 by Garmin Ltd. or its subsidiaries
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
*/
#ifndef _GEOCLUE_TYPES_H
#define _GEOCLUE_TYPES_H
#include <geoclue/geoclue-error.h>
/**
* SECTION:geoclue-types
* @short_description: Type definitions and defines useful for Geoclue clients
**/
/**
* GeoclueStatus
*
* defines the provider status
**/
typedef enum {
GEOCLUE_STATUS_ERROR,
GEOCLUE_STATUS_UNAVAILABLE,
GEOCLUE_STATUS_ACQUIRING,
GEOCLUE_STATUS_AVAILABLE
} GeoclueStatus;
/**
* GeoclueAccuracyLevel:
*
* Enum values used to define the approximate accuracy of
* Position or Address information.
**/
typedef enum {
GEOCLUE_ACCURACY_LEVEL_NONE = 0,
GEOCLUE_ACCURACY_LEVEL_COUNTRY,
GEOCLUE_ACCURACY_LEVEL_REGION,
GEOCLUE_ACCURACY_LEVEL_LOCALITY,
GEOCLUE_ACCURACY_LEVEL_POSTALCODE,
GEOCLUE_ACCURACY_LEVEL_STREET,
GEOCLUE_ACCURACY_LEVEL_DETAILED,
} GeoclueAccuracyLevel;
/**
* GeocluePositionFields:
*
* #GeocluePositionFields is a bitfield that defines the validity of
* Position values.
*
* Example:
* <informalexample>
* <programlisting>
* GeocluePositionFields fields;
* fields = geoclue_position_get_position (. . .);
*
* if (fields & GEOCLUE_POSITION_FIELDS_LATITUDE &&
* fields & GEOCLUE_POSITION_FIELDS_LONGITUDE) {
* g_print("latitude and longitude are valid");
* }
* </programlisting>
* </informalexample>
**/
typedef enum {
GEOCLUE_POSITION_FIELDS_NONE = 0,
GEOCLUE_POSITION_FIELDS_LATITUDE = 1 << 0,
GEOCLUE_POSITION_FIELDS_LONGITUDE = 1 << 1,
GEOCLUE_POSITION_FIELDS_ALTITUDE = 1 << 2
} GeocluePositionFields;
/**
* GeoclueVelocityFields:
*
* GeoclueVelocityFields is a bitfield that defines the validity of
* Velocity values.
**/
typedef enum {
GEOCLUE_VELOCITY_FIELDS_NONE = 0,
GEOCLUE_VELOCITY_FIELDS_SPEED = 1 << 0,
GEOCLUE_VELOCITY_FIELDS_DIRECTION = 1 << 1,
GEOCLUE_VELOCITY_FIELDS_CLIMB = 1 << 2
} GeoclueVelocityFields;
/**
* GEOCLUE_ADDRESS_KEY_COUNTRYCODE:
*
* A key for address hashtables. The hash value should be a ISO 3166 two
* letter country code.
*
* The used hash keys match the elements of XEP-0080 (XMPP protocol
* extension for user location), see
* <ulink url="http://www.xmpp.org/extensions/xep-0080.html">
* http://www.xmpp.org/extensions/xep-0080.html</ulink>
*/
#define GEOCLUE_ADDRESS_KEY_COUNTRYCODE "countrycode"
/**
* GEOCLUE_ADDRESS_KEY_COUNTRY:
*
* A key for address hashtables. The hash value should be a name of a country.
*/
#define GEOCLUE_ADDRESS_KEY_COUNTRY "country"
/**
* GEOCLUE_ADDRESS_KEY_REGION:
*
* A key for address hashtables. The hash value should be a name of an
* administrative region of a nation, e.g. province or
* US state.
*/
#define GEOCLUE_ADDRESS_KEY_REGION "region"
/**
* GEOCLUE_ADDRESS_KEY_LOCALITY:
*
* A key for address hashtables. The hash value should be a name of a town
* or city.
*/
#define GEOCLUE_ADDRESS_KEY_LOCALITY "locality"
/**
* GEOCLUE_ADDRESS_KEY_AREA:
*
* A key for address hashtables. The hash value should be a name of an
* area, such as neighborhood or campus.
*/
#define GEOCLUE_ADDRESS_KEY_AREA "area"
/**
* GEOCLUE_ADDRESS_KEY_POSTALCODE:
*
* A key for address hashtables. The hash value should be a code used for
* postal delivery.
*/
#define GEOCLUE_ADDRESS_KEY_POSTALCODE "postalcode"
/**
* GEOCLUE_ADDRESS_KEY_STREET:
*
* A key for address hashtables. The hash value should be a partial or full street
* address.
*/
#define GEOCLUE_ADDRESS_KEY_STREET "street"
/**
* GeoclueResourceFlags:
*
* bitfield that represents a set of physical resources.
*
**/
typedef enum _GeoclueResourceFlags {
GEOCLUE_RESOURCE_NONE = 0,
GEOCLUE_RESOURCE_NETWORK = 1 << 0,
GEOCLUE_RESOURCE_CELL = 1 << 1,
GEOCLUE_RESOURCE_GPS = 1 << 2,
GEOCLUE_RESOURCE_ALL = (1 << 10) - 1
} GeoclueResourceFlags;
/**
* GeoclueNetworkStatus:
*
* Enumeration for current network status.
*
**/
typedef enum {
GEOCLUE_CONNECTIVITY_UNKNOWN,
GEOCLUE_CONNECTIVITY_OFFLINE,
GEOCLUE_CONNECTIVITY_ACQUIRING,
GEOCLUE_CONNECTIVITY_ONLINE,
} GeoclueNetworkStatus;
void geoclue_types_init (void);
#endif
|