]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/load-fragment.h
service: add new RootImageOptions feature
[thirdparty/systemd.git] / src / core / load-fragment.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include "conf-parser.h"
5 #include "unit.h"
6
7 /* Config-parsing helpers relevant only for sources under src/core/ */
8 int parse_crash_chvt(const char *value, int *data);
9 int parse_confirm_spawn(const char *value, char **console);
10
11 /* Read service data from .desktop file style configuration fragments */
12
13 int unit_load_fragment(Unit *u);
14
15 void unit_dump_config_items(FILE *f);
16
17 CONFIG_PARSER_PROTOTYPE(config_parse_unit_deps);
18 CONFIG_PARSER_PROTOTYPE(config_parse_obsolete_unit_deps);
19 CONFIG_PARSER_PROTOTYPE(config_parse_unit_string_printf);
20 CONFIG_PARSER_PROTOTYPE(config_parse_unit_strv_printf);
21 CONFIG_PARSER_PROTOTYPE(config_parse_unit_path_printf);
22 CONFIG_PARSER_PROTOTYPE(config_parse_unit_path_strv_printf);
23 CONFIG_PARSER_PROTOTYPE(config_parse_documentation);
24 CONFIG_PARSER_PROTOTYPE(config_parse_socket_listen);
25 CONFIG_PARSER_PROTOTYPE(config_parse_socket_protocol);
26 CONFIG_PARSER_PROTOTYPE(config_parse_socket_bind);
27 CONFIG_PARSER_PROTOTYPE(config_parse_exec_nice);
28 CONFIG_PARSER_PROTOTYPE(config_parse_exec_oom_score_adjust);
29 CONFIG_PARSER_PROTOTYPE(config_parse_exec_coredump_filter);
30 CONFIG_PARSER_PROTOTYPE(config_parse_exec);
31 CONFIG_PARSER_PROTOTYPE(config_parse_service_timeout);
32 CONFIG_PARSER_PROTOTYPE(config_parse_service_timeout_abort);
33 CONFIG_PARSER_PROTOTYPE(config_parse_service_timeout_failure_mode);
34 CONFIG_PARSER_PROTOTYPE(config_parse_service_type);
35 CONFIG_PARSER_PROTOTYPE(config_parse_service_restart);
36 CONFIG_PARSER_PROTOTYPE(config_parse_socket_bindtodevice);
37 CONFIG_PARSER_PROTOTYPE(config_parse_exec_output);
38 CONFIG_PARSER_PROTOTYPE(config_parse_exec_input);
39 CONFIG_PARSER_PROTOTYPE(config_parse_exec_input_text);
40 CONFIG_PARSER_PROTOTYPE(config_parse_exec_input_data);
41 CONFIG_PARSER_PROTOTYPE(config_parse_exec_io_class);
42 CONFIG_PARSER_PROTOTYPE(config_parse_exec_io_priority);
43 CONFIG_PARSER_PROTOTYPE(config_parse_exec_cpu_sched_policy);
44 CONFIG_PARSER_PROTOTYPE(config_parse_exec_cpu_sched_prio);
45 CONFIG_PARSER_PROTOTYPE(config_parse_exec_cpu_affinity);
46 CONFIG_PARSER_PROTOTYPE(config_parse_exec_secure_bits);
47 CONFIG_PARSER_PROTOTYPE(config_parse_root_image_options);
48 CONFIG_PARSER_PROTOTYPE(config_parse_exec_root_hash);
49 CONFIG_PARSER_PROTOTYPE(config_parse_exec_root_hash_sig);
50 CONFIG_PARSER_PROTOTYPE(config_parse_capability_set);
51 CONFIG_PARSER_PROTOTYPE(config_parse_exec_mount_flags);
52 CONFIG_PARSER_PROTOTYPE(config_parse_timer);
53 CONFIG_PARSER_PROTOTYPE(config_parse_trigger_unit);
54 CONFIG_PARSER_PROTOTYPE(config_parse_path_spec);
55 CONFIG_PARSER_PROTOTYPE(config_parse_socket_service);
56 CONFIG_PARSER_PROTOTYPE(config_parse_service_sockets);
57 CONFIG_PARSER_PROTOTYPE(config_parse_unit_env_file);
58 CONFIG_PARSER_PROTOTYPE(config_parse_ip_tos);
59 CONFIG_PARSER_PROTOTYPE(config_parse_unit_condition_path);
60 CONFIG_PARSER_PROTOTYPE(config_parse_unit_condition_string);
61 CONFIG_PARSER_PROTOTYPE(config_parse_unit_condition_null);
62 CONFIG_PARSER_PROTOTYPE(config_parse_kill_mode);
63 CONFIG_PARSER_PROTOTYPE(config_parse_notify_access);
64 CONFIG_PARSER_PROTOTYPE(config_parse_emergency_action);
65 CONFIG_PARSER_PROTOTYPE(config_parse_unit_requires_mounts_for);
66 CONFIG_PARSER_PROTOTYPE(config_parse_syscall_filter);
67 CONFIG_PARSER_PROTOTYPE(config_parse_syscall_archs);
68 CONFIG_PARSER_PROTOTYPE(config_parse_syscall_errno);
69 CONFIG_PARSER_PROTOTYPE(config_parse_environ);
70 CONFIG_PARSER_PROTOTYPE(config_parse_pass_environ);
71 CONFIG_PARSER_PROTOTYPE(config_parse_unset_environ);
72 CONFIG_PARSER_PROTOTYPE(config_parse_unit_slice);
73 CONFIG_PARSER_PROTOTYPE(config_parse_cg_weight);
74 CONFIG_PARSER_PROTOTYPE(config_parse_cpu_shares);
75 CONFIG_PARSER_PROTOTYPE(config_parse_memory_limit);
76 CONFIG_PARSER_PROTOTYPE(config_parse_tasks_max);
77 CONFIG_PARSER_PROTOTYPE(config_parse_delegate);
78 CONFIG_PARSER_PROTOTYPE(config_parse_device_policy);
79 CONFIG_PARSER_PROTOTYPE(config_parse_device_allow);
80 CONFIG_PARSER_PROTOTYPE(config_parse_io_device_latency);
81 CONFIG_PARSER_PROTOTYPE(config_parse_io_device_weight);
82 CONFIG_PARSER_PROTOTYPE(config_parse_io_limit);
83 CONFIG_PARSER_PROTOTYPE(config_parse_blockio_weight);
84 CONFIG_PARSER_PROTOTYPE(config_parse_blockio_device_weight);
85 CONFIG_PARSER_PROTOTYPE(config_parse_blockio_bandwidth);
86 CONFIG_PARSER_PROTOTYPE(config_parse_job_mode);
87 CONFIG_PARSER_PROTOTYPE(config_parse_job_mode_isolate);
88 CONFIG_PARSER_PROTOTYPE(config_parse_exec_selinux_context);
89 CONFIG_PARSER_PROTOTYPE(config_parse_exec_apparmor_profile);
90 CONFIG_PARSER_PROTOTYPE(config_parse_exec_smack_process_label);
91 CONFIG_PARSER_PROTOTYPE(config_parse_address_families);
92 CONFIG_PARSER_PROTOTYPE(config_parse_runtime_preserve_mode);
93 CONFIG_PARSER_PROTOTYPE(config_parse_exec_directories);
94 CONFIG_PARSER_PROTOTYPE(config_parse_set_status);
95 CONFIG_PARSER_PROTOTYPE(config_parse_namespace_path_strv);
96 CONFIG_PARSER_PROTOTYPE(config_parse_temporary_filesystems);
97 CONFIG_PARSER_PROTOTYPE(config_parse_cpu_quota);
98 CONFIG_PARSER_PROTOTYPE(config_parse_allowed_cpus);
99 CONFIG_PARSER_PROTOTYPE(config_parse_allowed_mems);
100 CONFIG_PARSER_PROTOTYPE(config_parse_protect_home);
101 CONFIG_PARSER_PROTOTYPE(config_parse_protect_system);
102 CONFIG_PARSER_PROTOTYPE(config_parse_bus_name);
103 CONFIG_PARSER_PROTOTYPE(config_parse_exec_utmp_mode);
104 CONFIG_PARSER_PROTOTYPE(config_parse_working_directory);
105 CONFIG_PARSER_PROTOTYPE(config_parse_fdname);
106 CONFIG_PARSER_PROTOTYPE(config_parse_sec_fix_0);
107 CONFIG_PARSER_PROTOTYPE(config_parse_user_group_compat);
108 CONFIG_PARSER_PROTOTYPE(config_parse_user_group_strv_compat);
109 CONFIG_PARSER_PROTOTYPE(config_parse_restrict_namespaces);
110 CONFIG_PARSER_PROTOTYPE(config_parse_bind_paths);
111 CONFIG_PARSER_PROTOTYPE(config_parse_exec_keyring_mode);
112 CONFIG_PARSER_PROTOTYPE(config_parse_job_timeout_sec);
113 CONFIG_PARSER_PROTOTYPE(config_parse_job_running_timeout_sec);
114 CONFIG_PARSER_PROTOTYPE(config_parse_log_extra_fields);
115 CONFIG_PARSER_PROTOTYPE(config_parse_log_namespace);
116 CONFIG_PARSER_PROTOTYPE(config_parse_collect_mode);
117 CONFIG_PARSER_PROTOTYPE(config_parse_pid_file);
118 CONFIG_PARSER_PROTOTYPE(config_parse_exit_status);
119 CONFIG_PARSER_PROTOTYPE(config_parse_disable_controllers);
120 CONFIG_PARSER_PROTOTYPE(config_parse_oom_policy);
121 CONFIG_PARSER_PROTOTYPE(config_parse_numa_policy);
122 CONFIG_PARSER_PROTOTYPE(config_parse_numa_mask);
123 CONFIG_PARSER_PROTOTYPE(config_parse_ip_filter_bpf_progs);
124 CONFIG_PARSER_PROTOTYPE(config_parse_cpu_affinity2);
125 CONFIG_PARSER_PROTOTYPE(config_parse_show_status);
126 CONFIG_PARSER_PROTOTYPE(config_parse_status_unit_format);
127 CONFIG_PARSER_PROTOTYPE(config_parse_output_restricted);
128 CONFIG_PARSER_PROTOTYPE(config_parse_crash_chvt);
129 CONFIG_PARSER_PROTOTYPE(config_parse_timeout_abort);
130 CONFIG_PARSER_PROTOTYPE(config_parse_swap_priority);
131
132 /* gperf prototypes */
133 const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
134 extern const char load_fragment_gperf_nulstr[];