summaryrefslogtreecommitdiff
path: root/src/systemd-timesync/timesyncd-gperf.gperf
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-07 03:42:28 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-07 03:42:28 -0400
commitab543cb05387d60a23f9d7672a9338cf03bddf55 (patch)
tree2eac9cecf19b4a07e4805d41a492554c21ce8e3c /src/systemd-timesync/timesyncd-gperf.gperf
parentacd190019d99fe25abf4515ca1834eb277161833 (diff)
./move.sh
Diffstat (limited to 'src/systemd-timesync/timesyncd-gperf.gperf')
-rw-r--r--src/systemd-timesync/timesyncd-gperf.gperf19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/systemd-timesync/timesyncd-gperf.gperf b/src/systemd-timesync/timesyncd-gperf.gperf
new file mode 100644
index 0000000000..29a2cfeef6
--- /dev/null
+++ b/src/systemd-timesync/timesyncd-gperf.gperf
@@ -0,0 +1,19 @@
+%{
+#include <stddef.h>
+#include "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