GVariant* gweather_location_serialize ( GWeatherLocation* loc )
GWeatherLocation into a
GVariant, in a way that
gweather_location_deserialize() will hold an equivalent
The resulting variant can then be stored into GSettings or on disk.
This call is only valid for cities, weather stations and detached
The format of the resulting
GVariant is private to libgweather,
and it is subject to change. You should use the “v” format in GSettings,
to ensure maximum compatibility with future versions of the library.
The serialization of
|The data is owned by the instance.|