- const struct bus_properties_map map[] = {
- { "s", "Timezone", &info.timezone },
- { "b", "LocalRTC", &info.rtc_local },
- { "b", "NTP", &info.ntp_enabled },
- { "b", "CanNTP", &info.ntp_capable },
- { "b", "NTPSynchronized", &info.ntp_synced},
- { "t", "TimeUSec", &info.time },
- { "t", "RTCTimeUSec", &info.rtc_time },
+ static const struct bus_properties_map map[] = {
+ { "Timezone", "s", NULL, offsetof(StatusInfo, timezone) },
+ { "LocalRTC", "b", NULL, offsetof(StatusInfo, rtc_local) },
+ { "NTP", "b", NULL, offsetof(StatusInfo, ntp_enabled) },
+ { "CanNTP", "b", NULL, offsetof(StatusInfo, ntp_capable) },
+ { "NTPSynchronized", "b", NULL, offsetof(StatusInfo, ntp_synced) },
+ { "TimeUSec", "t", NULL, offsetof(StatusInfo, time) },
+ { "RTCTimeUSec", "t", NULL, offsetof(StatusInfo, rtc_time) },