/usr/share/gir-1.0/GeocodeGlib-1.0.gir is in libgeocode-glib-dev 0.99.0-1build1.
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 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 | <?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GLib" version="2.0"/>
<include name="GObject" version="2.0"/>
<include name="Gio" version="2.0"/>
<include name="Json" version="1.0"/>
<include name="Soup" version="2.4"/>
<include name="SoupGNOME" version="2.4"/>
<package name="geocode-glib-1.0"/>
<namespace name="GeocodeGlib"
version="1.0"
shared-library="libgeocode-glib.so.0"
c:identifier-prefixes="Geocode"
c:symbol-prefixes="geocode_">
<enumeration name="Error"
c:type="GeocodeError"
glib:error-domain="geocode_error">
<doc xml:whitespace="preserve">Error codes returned by geocode-glib functions.</doc>
<member name="parse" value="0" c:identifier="GEOCODE_ERROR_PARSE"/>
<member name="not_supported"
value="1"
c:identifier="GEOCODE_ERROR_NOT_SUPPORTED"/>
<member name="no_matches"
value="2"
c:identifier="GEOCODE_ERROR_NO_MATCHES"/>
</enumeration>
<constant name="OBJECT_FIELD_AIRPORT"
value="airport"
c:type="GEOCODE_OBJECT_FIELD_AIRPORT">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_CITY"
value="city"
c:type="GEOCODE_OBJECT_FIELD_CITY">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_COUNTRY"
value="country"
c:type="GEOCODE_OBJECT_FIELD_COUNTRY">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_COUNTRYCODE"
value="countrycode"
c:type="GEOCODE_OBJECT_FIELD_COUNTRYCODE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_COUNTY"
value="county"
c:type="GEOCODE_OBJECT_FIELD_COUNTY">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_COUNTYCODE"
value="countycode"
c:type="GEOCODE_OBJECT_FIELD_COUNTYCODE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_HASH"
value="hash"
c:type="GEOCODE_OBJECT_FIELD_HASH">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_HOUSE"
value="house"
c:type="GEOCODE_OBJECT_FIELD_HOUSE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_LATITUDE"
value="latitude"
c:type="GEOCODE_OBJECT_FIELD_LATITUDE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_LINE1"
value="line1"
c:type="GEOCODE_OBJECT_FIELD_LINE1">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_LINE2"
value="line2"
c:type="GEOCODE_OBJECT_FIELD_LINE2">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_LINE3"
value="line3"
c:type="GEOCODE_OBJECT_FIELD_LINE3">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_LINE4"
value="line4"
c:type="GEOCODE_OBJECT_FIELD_LINE4">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_LONGITUDE"
value="longitude"
c:type="GEOCODE_OBJECT_FIELD_LONGITUDE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_NAME"
value="name"
c:type="GEOCODE_OBJECT_FIELD_NAME">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_NEIGHBORHOOD"
value="neighborhood"
c:type="GEOCODE_OBJECT_FIELD_NEIGHBORHOOD">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_OFFSETLAT"
value="offsetlat"
c:type="GEOCODE_OBJECT_FIELD_OFFSETLAT">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_OFFSETLON"
value="offsetlon"
c:type="GEOCODE_OBJECT_FIELD_OFFSETLON">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_POSTAL"
value="postal"
c:type="GEOCODE_OBJECT_FIELD_POSTAL">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_RADIUS"
value="radius"
c:type="GEOCODE_OBJECT_FIELD_RADIUS">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_STATE"
value="state"
c:type="GEOCODE_OBJECT_FIELD_STATE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_STATECODE"
value="statecode"
c:type="GEOCODE_OBJECT_FIELD_STATECODE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_STREET"
value="street"
c:type="GEOCODE_OBJECT_FIELD_STREET">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_TIMEZONE"
value="timezone"
c:type="GEOCODE_OBJECT_FIELD_TIMEZONE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="OBJECT_FIELD_UZIP"
value="uzip"
c:type="GEOCODE_OBJECT_FIELD_UZIP">
<type name="utf8" c:type="gchar*"/>
</constant>
<class name="Object"
c:symbol-prefix="object"
c:type="GeocodeObject"
parent="GObject.Object"
glib:type-name="GeocodeObject"
glib:get-type="geocode_object_get_type"
glib:type-struct="ObjectClass">
<doc xml:whitespace="preserve">All the fields in the #GeocodeObject structure are private and should never be accessed directly.</doc>
<constructor name="new" c:identifier="geocode_object_new">
<doc xml:whitespace="preserve">Creates a new #GeocodeObject to perform geocoding with. Use
geocode_object_add() to add new parameters, and
geocode_object_resolve_async() to perform the resolution.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a new #GeocodeObject. Use g_object_unref() when done.</doc>
<type name="Object" c:type="GeocodeObject*"/>
</return-value>
</constructor>
<constructor name="new_for_coords"
c:identifier="geocode_object_new_for_coords">
<doc xml:whitespace="preserve">Creates a new #GeocodeObject to perform reverse geocoding with.
Use geocode_object_resolve_async() to perform the resolution.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a new #GeocodeObject. Use g_object_unref() when done.</doc>
<type name="Object" c:type="GeocodeObject*"/>
</return-value>
<parameters>
<parameter name="latitude" transfer-ownership="none">
<doc xml:whitespace="preserve">a valid latitude</doc>
<type name="gdouble" c:type="gdouble"/>
</parameter>
<parameter name="longitude" transfer-ownership="none">
<doc xml:whitespace="preserve">a valid longitude</doc>
<type name="gdouble" c:type="gdouble"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_for_params"
c:identifier="geocode_object_new_for_params">
<doc xml:whitespace="preserve">Creates a new #GeocodeObject to perform geocoding with. The
#GHashTable is in the format used by Telepathy, and documented
on <ulink url="http://telepathy.freedesktop.org/spec/Connection_Interface_Location.html#Mapping:Location">Telepathy's specification site</ulink>.
See also: <ulink url="http://xmpp.org/extensions/xep-0080.html">XEP-0080 specification</ulink>.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a new #GeocodeObject. Use g_object_unref() when done.</doc>
<type name="Object" c:type="GeocodeObject*"/>
</return-value>
<parameters>
<parameter name="params" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GHashTable with string keys, and #GValue values.</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="gpointer" c:type="gpointer"/>
<type name="gpointer" c:type="gpointer"/>
</type>
</parameter>
</parameters>
</constructor>
<function name="get_coords" c:identifier="geocode_object_get_coords">
<doc xml:whitespace="preserve">Parses the results hashtable and exports the longitude and latitude
as #gdoubles.
found and the return parameters set.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE when the longitude and latitude have been</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="results" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GHashTable as generated by geocode_object_resolve() and geocode_object_resolve_async()</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="gpointer" c:type="gpointer"/>
<type name="gpointer" c:type="gpointer"/>
</type>
</parameter>
<parameter name="longitude" transfer-ownership="none">
<doc xml:whitespace="preserve">a pointer to a #gdouble</doc>
<type name="gdouble" c:type="gdouble*"/>
</parameter>
<parameter name="latitude" transfer-ownership="none">
<doc xml:whitespace="preserve">a pointer to a #gdouble</doc>
<type name="gdouble" c:type="gdouble*"/>
</parameter>
</parameters>
</function>
<method name="add" c:identifier="geocode_object_add">
<doc xml:whitespace="preserve">Adds parameters to pass to the web service. A copy of the key
and value parameters are kept internally.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="key" transfer-ownership="none">
<doc xml:whitespace="preserve">a string representing a parameter to the web service</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">a string representing the value of a parameter</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="resolve" c:identifier="geocode_object_resolve" throws="1">
<doc xml:whitespace="preserve">Gets the result of a geocoding or reverse geocoding
query using a web service.
a #GHashTable containing the results of the query
or %NULL in case of errors.
Free the returned string with g_hash_table_destroy() when done.</doc>
<return-value transfer-ownership="full">
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="utf8"/>
</type>
</return-value>
</method>
<method name="resolve_async" c:identifier="geocode_object_resolve_async">
<doc xml:whitespace="preserve">Asynchronously gets the result of a geocoding or reverse geocoding
query using a web service. Use geocode_object_resolve() to do the same
thing synchronously.
When the operation is finished, @callback will be called. You can then call
geocode_object_resolve_finish() to get the result of the operation.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="cancellable"
transfer-ownership="none"
allow-none="1">
<doc xml:whitespace="preserve">optional #GCancellable object, %NULL to ignore.</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
allow-none="1"
scope="async"
closure="2">
<doc xml:whitespace="preserve">a #GAsyncReadyCallback to call when the request is satisfied</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:whitespace="preserve">the data to pass to callback function</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="resolve_finish"
c:identifier="geocode_object_resolve_finish"
throws="1">
<doc xml:whitespace="preserve">Finishes a query operation. See geocode_object_resolve_async().
a #GHashTable containing the results of the query
or %NULL in case of errors.
Free the returned string with g_hash_table_destroy() when done.</doc>
<return-value transfer-ownership="full">
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="utf8"/>
</type>
</return-value>
<parameters>
<parameter name="res" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GAsyncResult.</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</method>
<field name="parent_instance">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="ObjectPrivate" c:type="GeocodeObjectPrivate*"/>
</field>
</class>
<record name="ObjectClass"
c:type="GeocodeObjectClass"
glib:is-gtype-struct-for="Object">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<record name="ObjectPrivate" c:type="GeocodeObjectPrivate" disguised="1">
</record>
<function name="error_quark" c:identifier="geocode_error_quark">
<doc xml:whitespace="preserve">Gets the geocode-glib error quark.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">a #GQuark.</doc>
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
</namespace>
</repository>
|