/usr/include/geocode-glib-1.0/geocode-glib/geocode-backend.h is in libgeocode-glib-dev 3.25.4.1-4.
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 | /*
* Copyright (C) 2016 Collabora Ltd.
*
* The geocode-glib 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.
*
* The geocode-glib 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 the Gnome Library; see the file COPYING.LIB. If not,
* write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
* Authors:
* Aleksander Morgado <aleksander.morgado@collabora.co.uk>
* Philip Withnall <philip.withnall@collabora.co.uk>
*/
#ifndef GEOCODE_BACKEND_H
#define GEOCODE_BACKEND_H
#include <glib.h>
#include <gio/gio.h>
#include "geocode-place.h"
G_BEGIN_DECLS
/**
* GeocodeBackend:
*
* All the fields in the #GeocodeBackend structure are private and should
* never be accessed directly.
*
* Since: 3.23.1
*/
#define GEOCODE_TYPE_BACKEND (geocode_backend_get_type ())
G_DECLARE_INTERFACE (GeocodeBackend, geocode_backend, GEOCODE, BACKEND, GObject)
/**
* GEOCODE_TYPE_BACKEND:
*
* See #GeocodeBackend.
*
* Since: 3.23.1
*/
/**
* GeocodeBackendInterface:
* @forward_search: handles a synchronous forward geocoding request.
* @forward_search_async: starts an asynchronous forward geocoding request.
* @forward_search_finish: finishes an asynchronous forward geocoding request.
* @reverse_resolve: handles a synchronous reverse geocoding request.
* @reverse_resolve_async: starts an asynchronous reverse geocoding request.
* @reverse_resolve_finish: finishes an asynchronous reverse geocoding request.
*
* Interface which defines the basic operations for geocoding.
*
* Since: 3.23.1
*/
struct _GeocodeBackendInterface
{
/*< private >*/
GTypeInterface g_iface;
/*< public >*/
/* Forward */
GList *(*forward_search) (GeocodeBackend *backend,
GHashTable *params,
GCancellable *cancellable,
GError **error);
void (*forward_search_async) (GeocodeBackend *backend,
GHashTable *params,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GList *(*forward_search_finish) (GeocodeBackend *backend,
GAsyncResult *result,
GError **error);
/* Reverse */
GList *(*reverse_resolve) (GeocodeBackend *backend,
GHashTable *params,
GCancellable *cancellable,
GError **error);
void (*reverse_resolve_async) (GeocodeBackend *backend,
GHashTable *params,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GList *(*reverse_resolve_finish) (GeocodeBackend *backend,
GAsyncResult *result,
GError **error);
/*< private >*/
gpointer padding[4];
};
/* Forward geocoding operations */
void geocode_backend_forward_search_async (GeocodeBackend *backend,
GHashTable *params,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GList *geocode_backend_forward_search_finish (GeocodeBackend *backend,
GAsyncResult *result,
GError **error);
GList *geocode_backend_forward_search (GeocodeBackend *backend,
GHashTable *params,
GCancellable *cancellable,
GError **error);
/* Reverse geocoding operations */
void geocode_backend_reverse_resolve_async (GeocodeBackend *backend,
GHashTable *params,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GList *geocode_backend_reverse_resolve_finish (GeocodeBackend *backend,
GAsyncResult *result,
GError **error);
GList *geocode_backend_reverse_resolve (GeocodeBackend *backend,
GHashTable *params,
GCancellable *cancellable,
GError **error);
G_END_DECLS
#endif /* GEOCODE_BACKEND_H */
|