]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/analyze/analyze-verify.h
Merge pull request #20056 from calestyo/split-up-sysusers.d-systemd.conf.in
[thirdparty/systemd.git] / src / analyze / analyze-verify.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include <stdbool.h>
5
6 #include "execute.h"
7 #include "path-lookup.h"
8
9 typedef enum RecursiveErrors {
10 RECURSIVE_ERRORS_YES, /* Look for errors in all associated units */
11 RECURSIVE_ERRORS_NO, /* Don't look for errors in any but the selected unit */
12 RECURSIVE_ERRORS_ONE, /* Look for errors in the selected unit and its direct dependencies */
13 _RECURSIVE_ERRORS_MAX,
14 _RECURSIVE_ERRORS_INVALID = -EINVAL,
15 } RecursiveErrors;
16
17 int verify_generate_path(char **var, char **filenames);
18 int verify_prepare_filename(const char *filename, char **ret);
19 int verify_executable(Unit *u, const ExecCommand *exec, const char *root);
20 int verify_units(char **filenames, UnitFileScope scope, bool check_man, bool run_generators, RecursiveErrors recursive_errors, const char *root);
21
22 const char* recursive_errors_to_string(RecursiveErrors i) _const_;
23 RecursiveErrors recursive_errors_from_string(const char *s) _pure_;