]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/analyze/analyze-verify-util.h
run: also show a pretty string for main exit status, if any
[thirdparty/systemd.git] / src / analyze / analyze-verify-util.h
CommitLineData
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
9typedef 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 17int verify_set_unit_path(char **filenames);
f2562398
LP
18int verify_prepare_filename(const char *filename, char **ret);
19int verify_executable(Unit *u, const ExecCommand *exec, const char *root);
4870133b 20int verify_units(char **filenames, RuntimeScope scope, bool check_man, bool run_generators, RecursiveErrors recursive_errors, const char *root);
f2562398
LP
21
22const char* recursive_errors_to_string(RecursiveErrors i) _const_;
23RecursiveErrors recursive_errors_from_string(const char *s) _pure_;