BSB Developer Docs
Loading...
Searching...
No Matches
services/time/settings/interface_v1.h
1#include "time_format.h"
2
4#include <utz/utz.h>
5
6#define TIME_SERVER_ADDRESS_MAX_LENGTH 64
7
8typedef enum {
9 TimeSettingV1IdxIsEnabled,
10 TimeSettingV1IdxServerAddress,
11 TimeSettingV1IdxTimezone,
12 TimeSettingV1IdxBootDelay,
13 TimeSettingV1IdxBackgroundSyncInterval,
14 TimeSettingV1IdxRetrySyncInterval,
15 TimeSettingV1IdxTimeFormat,
16
17 TimeSettingV1IdxsCount,
18} TimeSettingV1Idx;
19
20typedef struct {
22 char server_address[TIME_SERVER_ADDRESS_MAX_LENGTH];
23 utz_zone_t timezone;
27 TimeSettingTimeFormat time_format;
Type-safe settings storage with JSON persistence and versioned migrations.
Definition services/time/settings/interface_v1.h:20
int boot_delay
Delay after boot before first sync in seconds.
Definition services/time/settings/interface_v1.h:24
TimeSettingTimeFormat time_format
Display time format (24h or 12h)
Definition services/time/settings/interface_v1.h:27
utz_zone_t timezone
Timezone.
Definition services/time/settings/interface_v1.h:23
int retry_sync_interval
Interval between sync retry attempts on failure in seconds.
Definition services/time/settings/interface_v1.h:26
bool is_enabled
Whether TIME service is enabled.
Definition services/time/settings/interface_v1.h:21
int background_sync_interval
Interval between automatic syncs in seconds.
Definition services/time/settings/interface_v1.h:25
Display time format description.