Debian Codegraph @

src/journal/journald-gperf.gperf

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 %{
3 _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
4 #if __GNUC__ >= 15
5 _Pragma("GCC diagnostic ignored \"-Wzero-as-null-pointer-constant\"")
6 #endif
7 #include <stddef.h>
8 #include "conf-parser.h"
9 #include "journald-config.h"
10 %}
11 struct ConfigPerfItem;
12 %null_strings
13 %language=ANSI-C
14 %define slot-name section_and_lvalue
15 %define hash-function-name journald_gperf_hash
16 %define lookup-function-name journald_gperf_lookup
17 %readonly-tables
18 %omit-struct-type
19 %struct-type
20 %includes
21 %%
22 Journal.Storage, config_parse_storage, 0, offsetof(JournalConfig, storage)
23 Journal.Compress, config_parse_compress, 0, offsetof(JournalConfig, compress)
24 Journal.Seal, config_parse_tristate, 0, offsetof(JournalConfig, seal)
25 Journal.ReadKMsg, config_parse_tristate, 0, offsetof(JournalConfig, read_kmsg)
26 Journal.Audit, config_parse_audit_set_mode, 0, offsetof(JournalConfig, set_audit)
27 Journal.SyncIntervalSec, config_parse_sec, 0, offsetof(JournalConfig, sync_interval_usec)
28 # The following is a legacy name for compatibility
29 Journal.RateLimitInterval, config_parse_sec, 0, offsetof(JournalConfig, ratelimit_interval)
30 Journal.RateLimitIntervalSec, config_parse_sec, 0, offsetof(JournalConfig, ratelimit_interval)
31 Journal.RateLimitBurst, config_parse_unsigned, 0, offsetof(JournalConfig, ratelimit_burst)
32 Journal.SystemMaxUse, config_parse_iec_uint64, 0, offsetof(JournalConfig, system_storage_metrics.max_use)
33 Journal.SystemMaxFileSize, config_parse_iec_uint64, 0, offsetof(JournalConfig, system_storage_metrics.max_size)
34 Journal.SystemKeepFree, config_parse_iec_uint64, 0, offsetof(JournalConfig, system_storage_metrics.keep_free)
35 Journal.SystemMaxFiles, config_parse_uint64, 0, offsetof(JournalConfig, system_storage_metrics.n_max_files)
36 Journal.RuntimeMaxUse, config_parse_iec_uint64, 0, offsetof(JournalConfig, runtime_storage_metrics.max_use)
37 Journal.RuntimeMaxFileSize, config_parse_iec_uint64, 0, offsetof(JournalConfig, runtime_storage_metrics.max_size)
38 Journal.RuntimeKeepFree, config_parse_iec_uint64, 0, offsetof(JournalConfig, runtime_storage_metrics.keep_free)
39 Journal.RuntimeMaxFiles, config_parse_uint64, 0, offsetof(JournalConfig, runtime_storage_metrics.n_max_files)
40 Journal.MaxRetentionSec, config_parse_sec, 0, offsetof(JournalConfig, max_retention_usec)
41 Journal.MaxFileSec, config_parse_sec, 0, offsetof(JournalConfig, max_file_usec)
42 Journal.ForwardToSyslog, config_parse_tristate, 0, offsetof(JournalConfig, forward_to_syslog)
43 Journal.ForwardToKMsg, config_parse_tristate, 0, offsetof(JournalConfig, forward_to_kmsg)
44 Journal.ForwardToConsole, config_parse_tristate, 0, offsetof(JournalConfig, forward_to_console)
45 Journal.ForwardToWall, config_parse_tristate, 0, offsetof(JournalConfig, forward_to_wall)
46 Journal.ForwardToSocket, config_parse_forward_to_socket, 0, offsetof(JournalConfig, forward_to_socket)
47 Journal.TTYPath, config_parse_path, 0, offsetof(JournalConfig, tty_path)
48 Journal.MaxLevelStore, config_parse_log_level, 0, offsetof(JournalConfig, max_level_store)
49 Journal.MaxLevelSyslog, config_parse_log_level, 0, offsetof(JournalConfig, max_level_syslog)
50 Journal.MaxLevelKMsg, config_parse_log_level, 0, offsetof(JournalConfig, max_level_kmsg)
51 Journal.MaxLevelConsole, config_parse_log_level, 0, offsetof(JournalConfig, max_level_console)
52 Journal.MaxLevelWall, config_parse_log_level, 0, offsetof(JournalConfig, max_level_wall)
53 Journal.MaxLevelSocket, config_parse_log_level, 0, offsetof(JournalConfig, max_level_socket)
54 Journal.SplitMode, config_parse_split_mode, 0, offsetof(JournalConfig, split_mode)
55 Journal.LineMax, config_parse_line_max, 0, offsetof(JournalConfig, line_max)