/usr/include/libgweather-3.0/libgweather/gweather-location.h is in libgweather-3-dev 3.10.2-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 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* gweather-location.h - Location-handling code
*
* Copyright 2008, Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see
* <http://www.gnu.org/licenses/>.
*/
#ifndef __GWEATHER_LOCATIONS_H__
#define __GWEATHER_LOCATIONS_H__
#ifndef GWEATHER_I_KNOW_THIS_IS_UNSTABLE
#error "libgweather should only be used if you understand that it's subject to change, and is not supported as a fixed API/ABI or as part of the platform"
#endif
#include <glib.h>
#include <libgweather/gweather-timezone.h>
G_BEGIN_DECLS
typedef struct _GWeatherLocation GWeatherLocation;
typedef enum { /*< underscore_name=gweather_location_level >*/
GWEATHER_LOCATION_WORLD,
GWEATHER_LOCATION_REGION,
GWEATHER_LOCATION_COUNTRY,
/* ADM1 = first-order administrative division = state/province, etc */
GWEATHER_LOCATION_ADM1,
/* ADM2 = second-order division = county, etc */
GWEATHER_LOCATION_ADM2,
GWEATHER_LOCATION_CITY,
GWEATHER_LOCATION_WEATHER_STATION,
GWEATHER_LOCATION_DETACHED
} GWeatherLocationLevel;
GType gweather_location_get_type (void);
#define GWEATHER_TYPE_LOCATION (gweather_location_get_type ())
GWeatherLocation *gweather_location_get_world (void);
G_DEPRECATED_FOR(gweather_location_get_world)
GWeatherLocation *gweather_location_new_world (gboolean use_regions);
GWeatherLocation *gweather_location_ref (GWeatherLocation *loc);
void gweather_location_unref (GWeatherLocation *loc);
const char *gweather_location_get_name (GWeatherLocation *loc);
const char *gweather_location_get_sort_name (GWeatherLocation *loc);
GWeatherLocationLevel gweather_location_get_level (GWeatherLocation *loc);
GWeatherLocation *gweather_location_get_parent (GWeatherLocation *loc);
GWeatherLocation **gweather_location_get_children (GWeatherLocation *loc);
gboolean gweather_location_has_coords (GWeatherLocation *loc);
void gweather_location_get_coords (GWeatherLocation *loc,
double *latitude,
double *longitude);
double gweather_location_get_distance (GWeatherLocation *loc,
GWeatherLocation *loc2);
const char *gweather_location_get_country (GWeatherLocation *loc);
GWeatherTimezone *gweather_location_get_timezone (GWeatherLocation *loc);
GWeatherTimezone **gweather_location_get_timezones (GWeatherLocation *loc);
void gweather_location_free_timezones (GWeatherLocation *loc,
GWeatherTimezone **zones);
const char *gweather_location_get_code (GWeatherLocation *loc);
char *gweather_location_get_city_name (GWeatherLocation *loc);
GWeatherLocation *gweather_location_find_by_station_code (GWeatherLocation *world,
const gchar *station_code);
gboolean gweather_location_equal (GWeatherLocation *one,
GWeatherLocation *two);
GVariant *gweather_location_serialize (GWeatherLocation *loc);
GWeatherLocation *gweather_location_deserialize (GWeatherLocation *world,
GVariant *serialized);
G_END_DECLS
#endif /* __GWEATHER_LOCATIONS_H__ */
|