This file is indexed.

/usr/include/geonames/geonames.h is in libgeonames-dev 0.2+16.04.20160321-0ubuntu1.

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
/*
 * Copyright 2015 Canonical Ltd.
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 3, as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 * PURPOSE.  See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Authors:
 *     Lars Uebernickel <lars.uebernickel@canonical.com>
 */

#ifndef GEONAMES_H
#define GEONAMES_H

#include <gio/gio.h>

G_BEGIN_DECLS

#ifndef _GEONAMES_EXPORT
#define _GEONAMES_EXPORT __attribute__((visibility("default"))) extern
#endif

/**
 * GeonamesQueryFlags:
 * @GEONAMES_QUERY_DEFAULT: no flags
 *
 * Flags used when querying the geonames database.
 */
typedef enum
{
  GEONAMES_QUERY_DEFAULT
} GeonamesQueryFlags;

typedef GVariant GeonamesCity;

_GEONAMES_EXPORT
void                    geonames_query_cities                           (const gchar         *query,
                                                                         GeonamesQueryFlags    flags,
                                                                         GCancellable        *cancellable,
                                                                         GAsyncReadyCallback  callback,
                                                                         gpointer             user_data);

_GEONAMES_EXPORT
gint *                  geonames_query_cities_finish                    (GAsyncResult        *result,
                                                                         guint               *length,
                                                                         GError             **error);
_GEONAMES_EXPORT
gint *                  geonames_query_cities_sync                      (const gchar         *query,
                                                                         GeonamesQueryFlags   flags,
                                                                         guint               *length,
                                                                         GCancellable        *cancellable,
                                                                         GError             **error);

_GEONAMES_EXPORT
gint                    geonames_get_n_cities                           (void);

_GEONAMES_EXPORT
GeonamesCity *          geonames_get_city                               (gint index);

_GEONAMES_EXPORT
void                    geonames_city_free                              (GeonamesCity *city);

_GEONAMES_EXPORT
const gchar *           geonames_city_get_name                          (GeonamesCity *city);

_GEONAMES_EXPORT
const gchar *           geonames_city_get_state                         (GeonamesCity *city);

_GEONAMES_EXPORT
const gchar *           geonames_city_get_country                       (GeonamesCity *city);

_GEONAMES_EXPORT
const gchar *           geonames_city_get_country_code                  (GeonamesCity *city);

_GEONAMES_EXPORT
const gchar *           geonames_city_get_timezone                      (GeonamesCity *city);

_GEONAMES_EXPORT
gdouble                 geonames_city_get_latitude                      (GeonamesCity *city);

_GEONAMES_EXPORT
gdouble                 geonames_city_get_longitude                     (GeonamesCity *city);

_GEONAMES_EXPORT
guint                   geonames_city_get_population                    (GeonamesCity *city);

G_DEFINE_AUTOPTR_CLEANUP_FUNC (GeonamesCity, geonames_city_free)

G_END_DECLS

#endif