]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/analyze/analyze.h
2f623e3201256b99fa29fc85d1a1430ea18760f8
[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 "time-util.h"
11 #include "unit-file.h"
12
13 typedef enum DotMode {
14 DEP_ALL,
15 DEP_ORDER,
16 DEP_REQUIRE,
17 } DotMode;
18
19 extern DotMode arg_dot;
20 extern char **arg_dot_from_patterns, **arg_dot_to_patterns;
21 extern usec_t arg_fuzz;
22 extern PagerFlags arg_pager_flags;
23 extern BusTransport arg_transport;
24 extern const char *arg_host;
25 extern RuntimeScope arg_runtime_scope;
26 extern RecursiveErrors arg_recursive_errors;
27 extern bool arg_man;
28 extern bool arg_generators;
29 extern char *arg_root;
30 extern char *arg_security_policy;
31 extern bool arg_offline;
32 extern unsigned arg_threshold;
33 extern unsigned arg_iterations;
34 extern usec_t arg_base_time;
35 extern char *arg_unit;
36 extern JsonFormatFlags arg_json_format_flags;
37 extern bool arg_quiet;
38 extern char *arg_profile;
39 extern bool arg_legend;
40 extern bool arg_table;
41
42 int acquire_bus(sd_bus **bus, bool *use_full_bus);
43
44 int bus_get_unit_property_strv(sd_bus *bus, const char *path, const char *property, char ***strv);
45
46 void time_parsing_hint(const char *p, bool calendar, bool timestamp, bool timespan);
47
48 int dump_fd_reply(sd_bus_message *message);