chiark / gitweb /
Reject invalid quoted strings
[elogind.git] / src / timesync / timesyncd.h
index 370b966fc69cca70d54afc3ee31a0f2b5d8c1bbb..e723404d82f2f52c0a09a43de959f9348e7d8daa 100644 (file)
@@ -42,6 +42,10 @@ struct ServerName {
         LIST_FIELDS(ServerName, names);
 };
 
+static inline int server_address_pretty(ServerAddress *a, char **pretty) {
+        return sockaddr_pretty(&a->sockaddr.sa, a->socklen, true, pretty);
+}
+
 struct Manager {
         sd_event *event;
         sd_resolve *resolve;
@@ -84,6 +88,7 @@ struct Manager {
 
         /* last change */
         bool jumped;
+        bool sync;
         int drift_ppm;
 
         /* watch for time changes */
@@ -93,8 +98,8 @@ struct Manager {
         /* Retry connections */
         sd_event_source *event_retry;
 
-        /* Handle SIGINT/SIGTERM */
-        sd_event_source *sigterm, *sigint;
+        /* RTC runs in local time, leave it alone */
+        bool rtc_local_time;
 };
 
 const struct ConfigPerfItem* timesyncd_gperf_lookup(const char *key, unsigned length);