This file is indexed.

/usr/include/geocode-glib-1.0/geocode-glib/geocode-mock-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
/*
 * 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: Philip Withnall <philip.withnall@collabora.co.uk>
 */

#ifndef GEOCODE_MOCK_BACKEND_H
#define GEOCODE_MOCK_BACKEND_H

#include <glib.h>
#include <glib-object.h>

G_BEGIN_DECLS

/**
 * GeocodeMockBackend:
 *
 * All the fields in the #GeocodeMockBackend structure are private and should
 * never be accessed directly.
 *
 * Since: 3.23.1
 */
#define GEOCODE_TYPE_MOCK_BACKEND (geocode_mock_backend_get_type ())
G_DECLARE_FINAL_TYPE (GeocodeMockBackend, geocode_mock_backend,
                      GEOCODE, MOCK_BACKEND, GObject)

/**
 * GEOCODE_TYPE_MOCK_BACKEND:
 *
 * See #GeocodeMockBackend.
 *
 * Since: 3.23.1
 */

GeocodeMockBackend *geocode_mock_backend_new (void);

void geocode_mock_backend_add_forward_result (GeocodeMockBackend *self,
                                              GHashTable         *params,
                                              GList              *results,
                                              const GError       *error);
void geocode_mock_backend_add_reverse_result (GeocodeMockBackend *self,
                                              GHashTable         *params,
                                              GList              *results,
                                              const GError       *error);

void geocode_mock_backend_clear              (GeocodeMockBackend *self);

/**
 * GeocodeMockBackendQuery:
 * @params: query parameters, in the format accepted by geocode_forward_search()
 *     (if @is_forward is %TRUE) or geocode_reverse_resolve() (otherwise)
 * @is_forward: %TRUE if this represents a call to geocode_forward_search();
 *     %FALSE if it represents a call to geocode_reverse_resolve()
 * @results: (nullable) (element-type GeocodePlace): results returned by the
 *     query, or %NULL if an error was returned
 * @error: (nullable): error returned by the query, or %NULL if a result set
 *     was returned
 *
 * The details of a forward or reverse query which was performed on a
 * #GeocodeMockBackend by application code. This includes the input (@params,
 * @is_forward), and the output which was returned (@results or @error).
 *
 * Empty result sets are represented by the %GEOCODE_ERROR_NO_MATCHES error
 * (for forward queries) or the %GEOCODE_ERROR_NOT_SUPPORTED error (for reverse
 * queries), rather than an empty @results list.
 *
 * Since: 3.23.1
 */
typedef struct {
	/* Request */
	GHashTable *params;
	gboolean is_forward;

	/* Response */
	GList *results;
	GError *error;
} GeocodeMockBackendQuery;

GPtrArray *geocode_mock_backend_get_query_log (GeocodeMockBackend *self);

G_END_DECLS

#endif /* GEOCODE_MOCK_BACKEND_H */