/usr/share/vala/vapi/gweather-3.0.vapi is in libgweather-3-dev 3.18.1-1ubuntu1.
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 | /* gweather-3.0.vapi generated by vapigen-0.28, do not modify. */
[CCode (cprefix = "GWeather", gir_namespace = "GWeather", gir_version = "3.0", lower_case_cprefix = "gweather_")]
namespace GWeather {
[CCode (cheader_filename = "libgweather/gweather.h", type_id = "gweather_info_get_type ()")]
public class Info : GLib.Object {
[CCode (has_construct_function = false)]
public Info (GWeather.Location? location, GWeather.ForecastType type);
public void abort ();
public string get_apparent ();
public unowned string get_attribution ();
public string get_conditions ();
public string get_dew ();
public GWeather.Provider get_enabled_providers ();
[Deprecated (since = "3.10")]
public string get_forecast ();
public unowned GLib.SList<GWeather.Info> get_forecast_list ();
public string get_humidity ();
public unowned string get_icon_name ();
public unowned GWeather.Location get_location ();
public string get_location_name ();
public string get_pressure ();
public unowned Gdk.PixbufAnimation get_radar ();
public string get_sky ();
public string get_sunrise ();
public string get_sunset ();
public unowned string get_symbolic_icon_name ();
public string get_temp ();
public string get_temp_max ();
public string get_temp_min ();
public string get_temp_summary ();
public bool get_upcoming_moonphases ([CCode (array_length = false)] out ulong[] phases);
public string get_update ();
public bool get_value_apparent (GWeather.TemperatureUnit unit, out double value);
public bool get_value_conditions (out GWeather.ConditionPhenomenon phenomenon, out GWeather.ConditionQualifier qualifier);
public bool get_value_dew (GWeather.TemperatureUnit unit, out double value);
public bool get_value_moonphase (out GWeather.MoonPhase value, out GWeather.MoonLatitude lat);
public bool get_value_pressure (GWeather.PressureUnit unit, out double value);
public bool get_value_sky (out GWeather.Sky sky);
public bool get_value_sunrise (out ulong value);
public bool get_value_sunset (out ulong value);
public bool get_value_temp (GWeather.TemperatureUnit unit, out double value);
public bool get_value_temp_max (GWeather.TemperatureUnit unit, out double value);
public bool get_value_temp_min (GWeather.TemperatureUnit unit, out double value);
public bool get_value_update (out long value);
public bool get_value_visibility (GWeather.DistanceUnit unit, out double value);
public bool get_value_wind (GWeather.SpeedUnit unit, out double speed, out GWeather.WindDirection direction);
public string get_visibility ();
public string get_weather_summary ();
public string get_wind ();
public bool is_daytime ();
public bool is_valid ();
public bool network_error ();
public int next_sun_event ();
public void set_enabled_providers (GWeather.Provider providers);
public void set_location (GWeather.Location? location);
public static void store_cache ();
public void update ();
public GWeather.Provider enabled_providers { get; set; }
public GWeather.Location location { get; set construct; }
public virtual signal void updated ();
}
[CCode (cheader_filename = "libgweather/gweather.h", ref_function = "gweather_location_ref", type_id = "gweather_location_get_type ()", unref_function = "gweather_location_unref")]
[Compact]
public class Location {
public GWeather.Location deserialize (GLib.Variant serialized);
[CCode (has_construct_function = false)]
public Location.detached (string name, string? icao, double latitude, double longitude);
public async GWeather.Location detect_nearest_city (double lat, double lon, GLib.Cancellable? cancellable) throws GLib.Error;
public bool equal (GWeather.Location two);
public GWeather.Location find_by_station_code (string station_code);
public GWeather.Location find_nearest_city (double lat, double lon);
public GWeather.Location find_nearest_city_full (double lat, double lon, owned GWeather.FilterFunc? func);
public void free_timezones (GWeather.Timezone zones);
[CCode (array_length = false, array_null_terminated = true)]
public unowned GWeather.Location[] get_children ();
public string get_city_name ();
public unowned string get_code ();
public void get_coords (out double latitude, out double longitude);
public unowned string get_country ();
public string get_country_name ();
public double get_distance (GWeather.Location loc2);
public GWeather.LocationLevel get_level ();
public unowned string get_name ();
public unowned GWeather.Location get_parent ();
public unowned string get_sort_name ();
public unowned GWeather.Timezone get_timezone ();
[CCode (array_length = false, array_null_terminated = true)]
public GWeather.Timezone[] get_timezones ();
public static unowned GWeather.Location get_world ();
public bool has_coords ();
public GWeather.Location @ref ();
public unowned GLib.Variant serialize ();
public void unref ();
[CCode (has_construct_function = false)]
[Deprecated (since = "3.10")]
public Location.world (bool use_regions);
}
[CCode (cheader_filename = "libgweather/gweather.h", type_id = "gweather_location_entry_get_type ()")]
public class LocationEntry : Gtk.SearchEntry, Atk.Implementor, Gtk.Buildable, Gtk.CellEditable, Gtk.Editable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public LocationEntry (GWeather.Location top);
public GWeather.Location get_location ();
public bool has_custom_text ();
public bool set_city (string? city_name, string code);
public void set_location (GWeather.Location? loc);
public GWeather.Location location { owned get; set; }
public GWeather.Location top { construct; }
}
[CCode (cheader_filename = "libgweather/gweather.h", ref_function = "gweather_timezone_ref", type_id = "gweather_timezone_get_type ()", unref_function = "gweather_timezone_unref")]
[Compact]
public class Timezone {
public static unowned GWeather.Timezone get_by_tzid (string tzid);
public int get_dst_offset ();
public unowned string get_name ();
public int get_offset ();
public unowned string get_tzid ();
public static GWeather.Timezone get_utc ();
public bool has_dst ();
public GWeather.Timezone @ref ();
public void unref ();
}
[CCode (cheader_filename = "libgweather/gweather.h", type_id = "gweather_timezone_menu_get_type ()")]
public class TimezoneMenu : Gtk.ComboBox, Atk.Implementor, Gtk.Buildable, Gtk.CellEditable, Gtk.CellLayout {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public TimezoneMenu (GWeather.Location top);
public unowned string get_tzid ();
public void set_tzid (string? tzid);
public GWeather.Location top { construct; }
public string tzid { get; set; }
}
[CCode (cheader_filename = "libgweather/gweather.h", has_type_id = false)]
public struct Conditions {
public bool significant;
public GWeather.ConditionPhenomenon phenomenon;
public GWeather.ConditionQualifier qualifier;
public unowned string to_string ();
}
[CCode (cheader_filename = "libgweather/gweather.h")]
[SimpleType]
public struct MoonLatitude : double {
}
[CCode (cheader_filename = "libgweather/gweather.h")]
[SimpleType]
public struct MoonPhase : double {
}
[CCode (cheader_filename = "libgweather/gweather.h", cprefix = "GWEATHER_PHENOMENON_", type_id = "gweather_phenomenon_get_type ()")]
public enum ConditionPhenomenon {
INVALID,
NONE,
DRIZZLE,
RAIN,
SNOW,
SNOW_GRAINS,
ICE_CRYSTALS,
ICE_PELLETS,
HAIL,
SMALL_HAIL,
UNKNOWN_PRECIPITATION,
MIST,
FOG,
SMOKE,
VOLCANIC_ASH,
SAND,
HAZE,
SPRAY,
DUST,
SQUALL,
SANDSTORM,
DUSTSTORM,
FUNNEL_CLOUD,
TORNADO,
DUST_WHIRLS,
LAST
}
[CCode (cheader_filename = "libgweather/gweather.h", cprefix = "GWEATHER_QUALIFIER_", type_id = "gweather_qualifier_get_type ()")]
public enum ConditionQualifier {
INVALID,
NONE,
VICINITY,
LIGHT,
MODERATE,
HEAVY,
SHALLOW,
PATCHES,
PARTIAL,
THUNDERSTORM,
BLOWING,
SHOWERS,
DRIFTING,
FREEZING,
LAST
}
[CCode (cheader_filename = "libgweather/gweather.h", cprefix = "GWEATHER_DISTANCE_UNIT_", type_id = "gweather_distance_unit_get_type ()")]
public enum DistanceUnit {
INVALID,
DEFAULT,
METERS,
KM,
MILES
}
[CCode (cheader_filename = "libgweather/gweather.h", cprefix = "GWEATHER_FORECAST_", type_id = "gweather_forecast_type_get_type ()")]
public enum ForecastType {
STATE,
ZONE,
LIST
}
[CCode (cheader_filename = "libgweather/gweather.h", cprefix = "GWEATHER_LOCATION_", type_id = "gweather_location_level_get_type ()")]
public enum LocationLevel {
WORLD,
REGION,
COUNTRY,
ADM1,
ADM2,
CITY,
WEATHER_STATION,
DETACHED
}
[CCode (cheader_filename = "libgweather/gweather.h", cprefix = "GWEATHER_PRESSURE_UNIT_", type_id = "gweather_pressure_unit_get_type ()")]
public enum PressureUnit {
INVALID,
DEFAULT,
KPA,
HPA,
MB,
MM_HG,
INCH_HG,
ATM
}
[CCode (cheader_filename = "libgweather/gweather.h", cprefix = "GWEATHER_PROVIDER_", type_id = "gweather_provider_get_type ()")]
[Flags]
public enum Provider {
NONE,
METAR,
IWIN,
YAHOO,
YR_NO,
OWM,
ALL
}
[CCode (cheader_filename = "libgweather/gweather.h", cprefix = "GWEATHER_SKY_", type_id = "gweather_sky_get_type ()")]
public enum Sky {
INVALID,
CLEAR,
BROKEN,
SCATTERED,
FEW,
OVERCAST,
LAST;
public static unowned string to_string (GWeather.Sky sky);
}
[CCode (cheader_filename = "libgweather/gweather.h", cprefix = "GWEATHER_SPEED_UNIT_", type_id = "gweather_speed_unit_get_type ()")]
public enum SpeedUnit {
INVALID,
DEFAULT,
MS,
KPH,
MPH,
KNOTS,
BFT
}
[CCode (cheader_filename = "libgweather/gweather.h", cprefix = "GWEATHER_TEMP_UNIT_", type_id = "gweather_temperature_unit_get_type ()")]
public enum TemperatureUnit {
INVALID,
DEFAULT,
KELVIN,
CENTIGRADE,
FAHRENHEIT;
public static GWeather.TemperatureUnit to_real (GWeather.TemperatureUnit unit);
}
[CCode (cheader_filename = "libgweather/gweather.h", cprefix = "GWEATHER_WIND_", type_id = "gweather_wind_direction_get_type ()")]
public enum WindDirection {
INVALID,
VARIABLE,
N,
NNE,
NE,
ENE,
E,
ESE,
SE,
SSE,
S,
SSW,
SW,
WSW,
W,
WNW,
NW,
NNW,
LAST;
public static unowned string to_string (GWeather.WindDirection wind);
}
[CCode (cheader_filename = "libgweather/gweather.h", instance_pos = 1.9)]
public delegate bool FilterFunc (GWeather.Location location);
[CCode (cheader_filename = "libgweather/gweather.h", cname = "GWEATHER_LOCATION_ENTRY_H")]
public const int LOCATION_ENTRY_H;
[CCode (cheader_filename = "libgweather/gweather.h", cname = "GWEATHER_TIMEZONE_MENU_H")]
public const int TIMEZONE_MENU_H;
}
|