| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "shared-forward.h" |
| 5 |
|
| 6 |
typedef enum RecursiveErrors RecursiveErrors; |
| 7 |
|
| 8 |
typedef enum DotMode { |
| 9 |
DEP_ALL, |
| 10 |
DEP_ORDER, |
| 11 |
DEP_REQUIRE, |
| 12 |
} DotMode; |
| 13 |
|
| 14 |
typedef enum CapabilityMode { |
| 15 |
CAPABILITY_LITERAL, |
| 16 |
CAPABILITY_MASK, |
| 17 |
} CapabilityMode; |
| 18 |
|
| 19 |
extern DotMode arg_dot; |
| 20 |
extern CapabilityMode arg_capability; |
| 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 char *arg_debugger; |
| 28 |
extern char **arg_debugger_args; |
| 29 |
extern RuntimeScope arg_runtime_scope; |
| 30 |
extern RecursiveErrors arg_recursive_errors; |
| 31 |
extern bool arg_man; |
| 32 |
extern bool arg_generators; |
| 33 |
extern const char *arg_instance; |
| 34 |
extern double arg_svg_timescale; |
| 35 |
extern bool arg_detailed_svg; |
| 36 |
extern char *arg_root; |
| 37 |
extern char *arg_security_policy; |
| 38 |
extern bool arg_offline; |
| 39 |
extern unsigned arg_threshold; |
| 40 |
extern unsigned arg_iterations; |
| 41 |
extern usec_t arg_base_time; |
| 42 |
extern char *arg_unit; |
| 43 |
extern sd_json_format_flags_t arg_json_format_flags; |
| 44 |
extern bool arg_quiet; |
| 45 |
extern char *arg_profile; |
| 46 |
extern bool arg_legend; |
| 47 |
extern bool arg_table; |
| 48 |
extern ImagePolicy *arg_image_policy; |
| 49 |
extern char *arg_drm_device_path; |
| 50 |
|
| 51 |
int acquire_bus(sd_bus **bus, bool *use_full_bus); |
| 52 |
|
| 53 |
int bus_get_unit_property_strv(sd_bus *bus, const char *path, const char *property, char ***strv); |
| 54 |
|
| 55 |
void time_parsing_hint(const char *p, bool calendar, bool timestamp, bool timespan); |