]>
Commit | Line | Data |
---|---|---|
30bddc06 LP |
1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
2 | #pragma once | |
3 | ||
4 | #include <stdbool.h> | |
5 | ||
f2562398 | 6 | #include "analyze-verify-util.h" |
25eb70af | 7 | #include "bus-util.h" |
57a22a3f | 8 | #include "json.h" |
08e36480 | 9 | #include "pager.h" |
5229b03c | 10 | #include "time-util.h" |
113dd9cb | 11 | #include "unit-file.h" |
5229b03c | 12 | |
cccd2af6 LP |
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; | |
ef215fa7 | 21 | extern usec_t arg_fuzz; |
08e36480 | 22 | extern PagerFlags arg_pager_flags; |
25eb70af | 23 | extern BusTransport arg_transport; |
ba474dad | 24 | extern const char *arg_host; |
b380b643 | 25 | extern LookupScope arg_scope; |
f2562398 | 26 | extern RecursiveErrors arg_recursive_errors; |
57a22a3f LP |
27 | extern bool arg_man; |
28 | extern bool arg_generators; | |
c649b343 | 29 | extern char *arg_root; |
57a22a3f LP |
30 | extern char *arg_security_policy; |
31 | extern bool arg_offline; | |
32 | extern unsigned arg_threshold; | |
5229b03c LP |
33 | extern unsigned arg_iterations; |
34 | extern usec_t arg_base_time; | |
e82116e5 | 35 | extern char *arg_unit; |
57a22a3f | 36 | extern JsonFormatFlags arg_json_format_flags; |
08e36480 | 37 | extern bool arg_quiet; |
57a22a3f | 38 | extern char *arg_profile; |
ff46b2f9 JZ |
39 | extern bool arg_legend; |
40 | extern bool arg_table; | |
5229b03c | 41 | |
25eb70af LP |
42 | int acquire_bus(sd_bus **bus, bool *use_full_bus); |
43 | ||
cccd2af6 LP |
44 | int bus_get_unit_property_strv(sd_bus *bus, const char *path, const char *property, char ***strv); |
45 | ||
30bddc06 | 46 | void time_parsing_hint(const char *p, bool calendar, bool timestamp, bool timespan); |