| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "shared-forward.h" |
| 5 |
|
| 6 |
typedef struct ExecCommand ExecCommand; |
| 7 |
typedef struct Unit Unit; |
| 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_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); |
| 21 |
|
| 22 |
DECLARE_STRING_TABLE_LOOKUP(recursive_errors, RecursiveErrors); |