]>
Commit | Line | Data |
---|---|---|
f2562398 LP |
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 | ||
ff7af46e | 17 | int verify_set_unit_path(char **filenames); |
f2562398 LP |
18 | int verify_prepare_filename(const char *filename, char **ret); |
19 | int verify_executable(Unit *u, const ExecCommand *exec, const char *root); | |
4870133b | 20 | int verify_units(char **filenames, RuntimeScope scope, bool check_man, bool run_generators, RecursiveErrors recursive_errors, const char *root); |
f2562398 LP |
21 | |
22 | const char* recursive_errors_to_string(RecursiveErrors i) _const_; | |
23 | RecursiveErrors recursive_errors_from_string(const char *s) _pure_; |