diff options
| author | Michael Biebl <biebl@debian.org> | 2018-06-17 14:54:57 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2018-06-17 14:54:57 +0200 |
| commit | 9d9b149b81f5ea5fe53ac383fda9cf3afb96b30f (patch) | |
| tree | a47c80e4d962d3f2202dbab41e2744c921fb8567 /clients/cli/nmcli.h | |
| parent | 03218e6d85e6654bd942b7531ba48b9d9535d55f (diff) | |
| parent | 069cb5c3a525ebcc19cc2927964258acaca87b13 (diff) | |
Update upstream source from tag 'upstream/1.11.90'
Update to upstream version '1.11.90' with Debian dir 13153fad72263d24704dca73c994fe8f7bfd3a28
Diffstat (limited to 'clients/cli/nmcli.h')
| -rw-r--r-- | clients/cli/nmcli.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clients/cli/nmcli.h b/clients/cli/nmcli.h index 61bf86de..bcf1c01b 100644 --- a/clients/cli/nmcli.h +++ b/clients/cli/nmcli.h @@ -72,6 +72,14 @@ typedef enum { NMC_PRINT_PRETTY = 2 } NMCPrintOutput; +static inline NMMetaAccessorGetType +nmc_print_output_to_accessor_get_type (NMCPrintOutput print_output) +{ + return (print_output != NMC_PRINT_TERSE) + ? NM_META_ACCESSOR_GET_TYPE_PRETTY + : NM_META_ACCESSOR_GET_TYPE_PARSABLE; +} + /* === Output fields === */ typedef enum { |