|
PebbleOS
|
#include <pbl/services/blob_db/weather_db.h>#include <pbl/services/weather/weather_types.h>#include <pbl/util/list.h>#include <time.h>#include <stdint.h>Data Structures | |
| struct | WeatherLocationForecast |
| Forecast for one location, as sent by the phone. More... | |
| struct | WeatherDataListNode |
| List node holding the forecast of one location. More... | |
Macros | |
| #define | WEATHER_SERVICE_MAX_SHORT_PHRASE_BUFFER_SIZE (32) |
| Buffer size for a short weather phrase. | |
| #define | WEATHER_SERVICE_MAX_WEATHER_LOCATION_BUFFER_SIZE (64) |
| Buffer size for a location name. | |
| #define | WEATHER_SERVICE_INVALID_DATA_LAST_UPDATE_TIME (0) |
| Last update time marking an entry without valid data. | |
| #define | WEATHER_SERVICE_LOCATION_FORECAST_UNKNOWN_TEMP (INT16_MAX) |
| Temperature value meaning unknown. | |
Typedefs | |
| typedef int | WeatherLocationID |
| Index of a weather location in the user's ordering. | |
Functions | |
| void | weather_service_init (void) |
| Initialize the weather service. | |
| WeatherLocationForecast * | weather_service_create_default_forecast (void) |
| Get a copy of the default location's forecast. | |
| void | weather_service_destroy_default_forecast (WeatherLocationForecast *forecast) |
| Free a forecast created by weather_service_create_default_forecast(). | |
| WeatherDataListNode * | weather_service_locations_list_create (size_t *count_out) |
| Build a list of the forecasts of all valid locations. | |
| WeatherDataListNode * | weather_service_locations_list_get_location_at_index (WeatherDataListNode *head, unsigned int index) |
| Get the list node at an index. | |
| void | weather_service_locations_list_destroy (WeatherDataListNode *head) |
| Free a list created by weather_service_locations_list_create(). | |
| bool | weather_service_supported_by_phone (void) |
| Check whether the connected phone app supports weather. | |