]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/load-fragment.h
tree-wide: port over all code to the new CONFIG_PARSER_PROTOTYPE() macro
[thirdparty/systemd.git] / src / core / load-fragment.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 This file is part of systemd.
6
7 Copyright 2010 Lennart Poettering
8 ***/
9
10 #include "conf-parser.h"
11 #include "unit.h"
12
13 /* Read service data from .desktop file style configuration fragments */
14
15 int unit_load_fragment(Unit *u);
16
17 void unit_dump_config_items(FILE *f);
18
19 CONFIG_PARSER_PROTOTYPE(config_parse_unit_deps);
20 CONFIG_PARSER_PROTOTYPE(config_parse_obsolete_unit_deps);
21 CONFIG_PARSER_PROTOTYPE(config_parse_unit_string_printf);
22 CONFIG_PARSER_PROTOTYPE(config_parse_unit_strv_printf);
23 CONFIG_PARSER_PROTOTYPE(config_parse_unit_path_printf);
24 CONFIG_PARSER_PROTOTYPE(config_parse_unit_path_strv_printf);
25 CONFIG_PARSER_PROTOTYPE(config_parse_documentation);
26 CONFIG_PARSER_PROTOTYPE(config_parse_socket_listen);
27 CONFIG_PARSER_PROTOTYPE(config_parse_socket_protocol);
28 CONFIG_PARSER_PROTOTYPE(config_parse_socket_bind);
29 CONFIG_PARSER_PROTOTYPE(config_parse_exec_nice);
30 CONFIG_PARSER_PROTOTYPE(config_parse_exec_oom_score_adjust);
31 CONFIG_PARSER_PROTOTYPE(config_parse_exec);
32 CONFIG_PARSER_PROTOTYPE(config_parse_service_timeout);
33 CONFIG_PARSER_PROTOTYPE(config_parse_service_type);
34 CONFIG_PARSER_PROTOTYPE(config_parse_service_restart);
35 CONFIG_PARSER_PROTOTYPE(config_parse_socket_bindtodevice);
36 CONFIG_PARSER_PROTOTYPE(config_parse_exec_output);
37 CONFIG_PARSER_PROTOTYPE(config_parse_exec_input);
38 CONFIG_PARSER_PROTOTYPE(config_parse_exec_input_text);
39 CONFIG_PARSER_PROTOTYPE(config_parse_exec_input_data);
40 CONFIG_PARSER_PROTOTYPE(config_parse_exec_io_class);
41 CONFIG_PARSER_PROTOTYPE(config_parse_exec_io_priority);
42 CONFIG_PARSER_PROTOTYPE(config_parse_exec_cpu_sched_policy);
43 CONFIG_PARSER_PROTOTYPE(config_parse_exec_cpu_sched_prio);
44 CONFIG_PARSER_PROTOTYPE(config_parse_exec_cpu_affinity);
45 CONFIG_PARSER_PROTOTYPE(config_parse_exec_secure_bits);
46 CONFIG_PARSER_PROTOTYPE(config_parse_capability_set);
47 CONFIG_PARSER_PROTOTYPE(config_parse_sysv_priority);
48 CONFIG_PARSER_PROTOTYPE(config_parse_kill_signal);
49 CONFIG_PARSER_PROTOTYPE(config_parse_exec_mount_flags);
50 CONFIG_PARSER_PROTOTYPE(config_parse_timer);
51 CONFIG_PARSER_PROTOTYPE(config_parse_trigger_unit);
52 CONFIG_PARSER_PROTOTYPE(config_parse_path_spec);
53 CONFIG_PARSER_PROTOTYPE(config_parse_socket_service);
54 CONFIG_PARSER_PROTOTYPE(config_parse_service_sockets);
55 CONFIG_PARSER_PROTOTYPE(config_parse_unit_env_file);
56 CONFIG_PARSER_PROTOTYPE(config_parse_ip_tos);
57 CONFIG_PARSER_PROTOTYPE(config_parse_unit_condition_path);
58 CONFIG_PARSER_PROTOTYPE(config_parse_unit_condition_string);
59 CONFIG_PARSER_PROTOTYPE(config_parse_unit_condition_null);
60 CONFIG_PARSER_PROTOTYPE(config_parse_kill_mode);
61 CONFIG_PARSER_PROTOTYPE(config_parse_notify_access);
62 CONFIG_PARSER_PROTOTYPE(config_parse_emergency_action);
63 CONFIG_PARSER_PROTOTYPE(config_parse_unit_requires_mounts_for);
64 CONFIG_PARSER_PROTOTYPE(config_parse_syscall_filter);
65 CONFIG_PARSER_PROTOTYPE(config_parse_syscall_archs);
66 CONFIG_PARSER_PROTOTYPE(config_parse_syscall_errno);
67 CONFIG_PARSER_PROTOTYPE(config_parse_environ);
68 CONFIG_PARSER_PROTOTYPE(config_parse_pass_environ);
69 CONFIG_PARSER_PROTOTYPE(config_parse_unset_environ);
70 CONFIG_PARSER_PROTOTYPE(config_parse_unit_slice);
71 CONFIG_PARSER_PROTOTYPE(config_parse_cpu_weight);
72 CONFIG_PARSER_PROTOTYPE(config_parse_cpu_shares);
73 CONFIG_PARSER_PROTOTYPE(config_parse_memory_limit);
74 CONFIG_PARSER_PROTOTYPE(config_parse_tasks_max);
75 CONFIG_PARSER_PROTOTYPE(config_parse_delegate);
76 CONFIG_PARSER_PROTOTYPE(config_parse_device_policy);
77 CONFIG_PARSER_PROTOTYPE(config_parse_device_allow);
78 CONFIG_PARSER_PROTOTYPE(config_parse_io_weight);
79 CONFIG_PARSER_PROTOTYPE(config_parse_io_device_weight);
80 CONFIG_PARSER_PROTOTYPE(config_parse_io_limit);
81 CONFIG_PARSER_PROTOTYPE(config_parse_blockio_weight);
82 CONFIG_PARSER_PROTOTYPE(config_parse_blockio_device_weight);
83 CONFIG_PARSER_PROTOTYPE(config_parse_blockio_bandwidth);
84 CONFIG_PARSER_PROTOTYPE(config_parse_netclass);
85 CONFIG_PARSER_PROTOTYPE(config_parse_job_mode);
86 CONFIG_PARSER_PROTOTYPE(config_parse_job_mode_isolate);
87 CONFIG_PARSER_PROTOTYPE(config_parse_exec_selinux_context);
88 CONFIG_PARSER_PROTOTYPE(config_parse_exec_apparmor_profile);
89 CONFIG_PARSER_PROTOTYPE(config_parse_exec_smack_process_label);
90 CONFIG_PARSER_PROTOTYPE(config_parse_address_families);
91 CONFIG_PARSER_PROTOTYPE(config_parse_runtime_preserve_mode);
92 CONFIG_PARSER_PROTOTYPE(config_parse_exec_directories);
93 CONFIG_PARSER_PROTOTYPE(config_parse_set_status);
94 CONFIG_PARSER_PROTOTYPE(config_parse_namespace_path_strv);
95 CONFIG_PARSER_PROTOTYPE(config_parse_temporary_filesystems);
96 CONFIG_PARSER_PROTOTYPE(config_parse_no_new_privileges);
97 CONFIG_PARSER_PROTOTYPE(config_parse_cpu_quota);
98 CONFIG_PARSER_PROTOTYPE(config_parse_protect_home);
99 CONFIG_PARSER_PROTOTYPE(config_parse_protect_system);
100 CONFIG_PARSER_PROTOTYPE(config_parse_bus_name);
101 CONFIG_PARSER_PROTOTYPE(config_parse_exec_utmp_mode);
102 CONFIG_PARSER_PROTOTYPE(config_parse_working_directory);
103 CONFIG_PARSER_PROTOTYPE(config_parse_fdname);
104 CONFIG_PARSER_PROTOTYPE(config_parse_sec_fix_0);
105 CONFIG_PARSER_PROTOTYPE(config_parse_user_group);
106 CONFIG_PARSER_PROTOTYPE(config_parse_user_group_strv);
107 CONFIG_PARSER_PROTOTYPE(config_parse_restrict_namespaces);
108 CONFIG_PARSER_PROTOTYPE(config_parse_bind_paths);
109 CONFIG_PARSER_PROTOTYPE(config_parse_exec_keyring_mode);
110 CONFIG_PARSER_PROTOTYPE(config_parse_job_timeout_sec);
111 CONFIG_PARSER_PROTOTYPE(config_parse_job_running_timeout_sec);
112 CONFIG_PARSER_PROTOTYPE(config_parse_log_extra_fields);
113 CONFIG_PARSER_PROTOTYPE(config_parse_collect_mode);
114
115 /* gperf prototypes */
116 const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
117 extern const char load_fragment_gperf_nulstr[];