2012-01-04 23:40:04 +04:00
%{
#include <stddef.h>
2012-08-24 03:46:38 +04:00
#include <sys/socket.h>
2012-01-04 23:40:04 +04:00
#include "conf-parser.h"
2012-11-12 20:29:07 +04:00
#include "journald-server.h"
2012-01-04 23:40:04 +04:00
%}
struct ConfigPerfItem;
%null_strings
%language=ANSI-C
%define slot-name section_and_lvalue
%define hash-function-name journald_gperf_hash
%define lookup-function-name journald_gperf_lookup
%readonly-tables
%omit-struct-type
%struct-type
%includes
%%
2014-03-04 00:14:07 +04:00
Journal.Storage, config_parse_storage, 0, offsetof(Server, storage)
Journal.Compress, config_parse_bool, 0, offsetof(Server, compress)
Journal.Seal, config_parse_bool, 0, offsetof(Server, seal)
Journal.SyncIntervalSec, config_parse_sec, 0, offsetof(Server, sync_interval_usec)
2016-04-26 21:46:20 +03:00
# The following is a legacy name for compatibility
2014-03-04 00:14:07 +04:00
Journal.RateLimitInterval, config_parse_sec, 0, offsetof(Server, rate_limit_interval)
2016-04-26 21:46:20 +03:00
Journal.RateLimitIntervalSec,config_parse_sec, 0, offsetof(Server, rate_limit_interval)
2014-03-04 00:14:07 +04:00
Journal.RateLimitBurst, config_parse_unsigned, 0, offsetof(Server, rate_limit_burst)
2015-09-10 19:16:18 +03:00
Journal.SystemMaxUse, config_parse_iec_uint64, 0, offsetof(Server, system_metrics.max_use)
Journal.SystemMaxFileSize, config_parse_iec_uint64, 0, offsetof(Server, system_metrics.max_size)
Journal.SystemKeepFree, config_parse_iec_uint64, 0, offsetof(Server, system_metrics.keep_free)
2015-10-03 00:21:59 +03:00
Journal.SystemMaxFiles, config_parse_uint64, 0, offsetof(Server, system_metrics.n_max_files)
2015-09-10 19:16:18 +03:00
Journal.RuntimeMaxUse, config_parse_iec_uint64, 0, offsetof(Server, runtime_metrics.max_use)
Journal.RuntimeMaxFileSize, config_parse_iec_uint64, 0, offsetof(Server, runtime_metrics.max_size)
Journal.RuntimeKeepFree, config_parse_iec_uint64, 0, offsetof(Server, runtime_metrics.keep_free)
2015-10-03 00:21:59 +03:00
Journal.RuntimeMaxFiles, config_parse_uint64, 0, offsetof(Server, runtime_metrics.n_max_files)
2014-03-04 00:14:07 +04:00
Journal.MaxRetentionSec, config_parse_sec, 0, offsetof(Server, max_retention_usec)
Journal.MaxFileSec, config_parse_sec, 0, offsetof(Server, max_file_usec)
Journal.ForwardToSyslog, config_parse_bool, 0, offsetof(Server, forward_to_syslog)
Journal.ForwardToKMsg, config_parse_bool, 0, offsetof(Server, forward_to_kmsg)
Journal.ForwardToConsole, config_parse_bool, 0, offsetof(Server, forward_to_console)
2014-03-14 03:38:15 +04:00
Journal.ForwardToWall, config_parse_bool, 0, offsetof(Server, forward_to_wall)
2014-03-04 00:14:07 +04:00
Journal.TTYPath, config_parse_path, 0, offsetof(Server, tty_path)
Journal.MaxLevelStore, config_parse_log_level, 0, offsetof(Server, max_level_store)
Journal.MaxLevelSyslog, config_parse_log_level, 0, offsetof(Server, max_level_syslog)
Journal.MaxLevelKMsg, config_parse_log_level, 0, offsetof(Server, max_level_kmsg)
Journal.MaxLevelConsole, config_parse_log_level, 0, offsetof(Server, max_level_console)
2014-03-14 03:38:15 +04:00
Journal.MaxLevelWall, config_parse_log_level, 0, offsetof(Server, max_level_wall)
2014-03-04 00:14:07 +04:00
Journal.SplitMode, config_parse_split_mode, 0, offsetof(Server, split_mode)