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 LookupScope arg_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 
40 int acquire_bus(sd_bus **bus, bool *use_full_bus);
41 
42 int bus_get_unit_property_strv(sd_bus *bus, const char *path, const char *property, char ***strv);
43 
44 void time_parsing_hint(const char *p, bool calendar, bool timestamp, bool timespan);
45