1:255.16-alt1
[systemd_ALT.git] / src / analyze / analyze-verify-util.h
blob0834c59c576cff87cd312871182ee051dbfe785d
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
4 #include <stdbool.h>
6 #include "execute.h"
7 #include "path-lookup.h"
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;
17 int verify_set_unit_path(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, RuntimeScope scope, bool check_man, bool run_generators, RecursiveErrors recursive_errors, const char *root);
22 const char* recursive_errors_to_string(RecursiveErrors i) _const_;
23 RecursiveErrors recursive_errors_from_string(const char *s) _pure_;