summaryrefslogtreecommitdiff
path: root/src/systemd-timesyncd/timesyncd-gperf.gperf
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemd-timesyncd/timesyncd-gperf.gperf')
-rw-r--r--src/systemd-timesyncd/timesyncd-gperf.gperf21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/systemd-timesyncd/timesyncd-gperf.gperf b/src/systemd-timesyncd/timesyncd-gperf.gperf
new file mode 100644
index 0000000000..8956cc773d
--- /dev/null
+++ b/src/systemd-timesyncd/timesyncd-gperf.gperf
@@ -0,0 +1,21 @@
+%{
+#include <stddef.h>
+
+#include "systemd-shared/conf-parser.h"
+
+#include "timesyncd-conf.h"
+%}
+struct ConfigPerfItem;
+%null_strings
+%language=ANSI-C
+%define slot-name section_and_lvalue
+%define hash-function-name timesyncdd_gperf_hash
+%define lookup-function-name timesyncd_gperf_lookup
+%readonly-tables
+%omit-struct-type
+%struct-type
+%includes
+%%
+Time.NTP, config_parse_servers, SERVER_SYSTEM, 0
+Time.Servers, config_parse_servers, SERVER_SYSTEM, 0
+Time.FallbackNTP, config_parse_servers, SERVER_FALLBACK, 0