]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/analyze/analyze.h
run: also show a pretty string for main exit status, if any
[thirdparty/systemd.git] / src / analyze / analyze.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include <stdbool.h>
5
6 #include "analyze-verify-util.h"
7 #include "bus-util.h"
8 #include "json.h"
9 #include "pager.h"
10 #include "pretty-print.h"
11 #include "time-util.h"
12 #include "unit-file.h"
13
14 typedef enum DotMode {
15 DEP_ALL,
16 DEP_ORDER,
17 DEP_REQUIRE,
18 } DotMode;
19
20 extern DotMode arg_dot;
21 extern char **arg_dot_from_patterns, **arg_dot_to_patterns;
22 extern usec_t arg_fuzz;
23 extern PagerFlags arg_pager_flags;
24 extern CatFlags arg_cat_flags;
25 extern BusTransport arg_transport;
26 extern const char *arg_host;
27 extern RuntimeScope arg_runtime_scope;
28 extern RecursiveErrors arg_recursive_errors;
29 extern bool arg_man;
30 extern bool arg_generators;
31 extern char *arg_root;
32 extern char *arg_security_policy;
33 extern bool arg_offline;
34 extern unsigned arg_threshold;
35 extern unsigned arg_iterations;
36 extern usec_t arg_base_time;
37 extern char *arg_unit;
38 extern JsonFormatFlags arg_json_format_flags;
39 extern bool arg_quiet;
40 extern char *arg_profile;
41 extern bool arg_legend;
42 extern bool arg_table;
43 extern ImagePolicy *arg_image_policy;
44
45 int acquire_bus(sd_bus **bus, bool *use_full_bus);
46
47 int bus_get_unit_property_strv(sd_bus *bus, const char *path, const char *property, char ***strv);
48
49 void time_parsing_hint(const char *p, bool calendar, bool timestamp, bool timespan);
50
51 int dump_fd_reply(sd_bus_message *message);