chiark / gitweb /
readahead: fix calculation of percentage
[elogind.git] / src / journal / journald-gperf.gperf
1 %{
2 #include <stddef.h>
3 #include "conf-parser.h"
4 #include "journald.h"
5 %}
6 struct ConfigPerfItem;
7 %null_strings
8 %language=ANSI-C
9 %define slot-name section_and_lvalue
10 %define hash-function-name journald_gperf_hash
11 %define lookup-function-name journald_gperf_lookup
12 %readonly-tables
13 %omit-struct-type
14 %struct-type
15 %includes
16 %%
17 Journal.RateLimitInterval,  config_parse_usec,      0, offsetof(Server, rate_limit_interval)
18 Journal.RateLimitBurst,     config_parse_unsigned,  0, offsetof(Server, rate_limit_burst)
19 Journal.Compress,           config_parse_bool,      0, offsetof(Server, compress)
20 Journal.SystemMaxUse,       config_parse_bytes_off, 0, offsetof(Server, system_metrics.max_use)
21 Journal.SystemMaxFileSize,  config_parse_bytes_off, 0, offsetof(Server, system_metrics.max_size)
22 Journal.SystemMinFileSize,  config_parse_bytes_off, 0, offsetof(Server, system_metrics.min_size)
23 Journal.SystemKeepFree,     config_parse_bytes_off, 0, offsetof(Server, system_metrics.keep_free)
24 Journal.RuntimeMaxUse,      config_parse_bytes_off, 0, offsetof(Server, runtime_metrics.max_use)
25 Journal.RuntimeMaxFileSize, config_parse_bytes_off, 0, offsetof(Server, runtime_metrics.max_size)
26 Journal.RuntimeMinFileSize, config_parse_bytes_off, 0, offsetof(Server, runtime_metrics.min_size)
27 Journal.RuntimeKeepFree,    config_parse_bytes_off, 0, offsetof(Server, runtime_metrics.keep_free)
28 Journal.ForwardToSyslog,    config_parse_bool,      0, offsetof(Server, forward_to_syslog)
29 Journal.ForwardToKMsg,      config_parse_bool,      0, offsetof(Server, forward_to_kmsg)
30 Journal.ForwardToConsole,   config_parse_bool,      0, offsetof(Server, forward_to_console)
31 Journal.ImportKernel,       config_parse_bool,      0, offsetof(Server, import_proc_kmsg)
32 Journal.TTYPath,            config_parse_path,      0, offsetof(Server, tty_path)
33 Journal.MaxLevelStore,      config_parse_level,     0, offsetof(Server, max_level_store)
34 Journal.MaxLevelSyslog,     config_parse_level,     0, offsetof(Server, max_level_syslog)
35 Journal.MaxLevelKMsg,       config_parse_level,     0, offsetof(Server, max_level_kmsg)
36 Journal.MaxLevelConsole,    config_parse_level,     0, offsetof(Server, max_level_console)
37 Journal.Storage,            config_parse_storage,   0, offsetof(Server, storage)