Commit 16299e5a authored by Thomas Haller's avatar Thomas Haller

cli: use nmc_print() to output `nmcli general permissions`

Add also colors for the output values.
parent 3045daf1
This diff is collapsed.
......@@ -1419,7 +1419,7 @@ _print_fill (const NmcConfig *nmc_config,
cell->header_cell = header_cell;
cell->text = nm_meta_abstract_info_get (info,
NULL,
NULL,
&nm_cli,
target,
text_get_type,
text_get_flags,
......@@ -1428,7 +1428,7 @@ _print_fill (const NmcConfig *nmc_config,
nm_meta_termformat_unpack (nm_meta_abstract_info_get (info,
NULL,
NULL,
&nm_cli,
target,
NM_META_ACCESSOR_GET_TYPE_TERMFORMAT,
NM_META_ACCESSOR_GET_FLAGS_NONE,
......
......@@ -104,6 +104,7 @@ void print_data (const NmcConfig *nmc_config,
/*****************************************************************************/
typedef enum {
NMC_GENERIC_INFO_TYPE_GENERAL_STATUS_RUNNING = 0,
NMC_GENERIC_INFO_TYPE_GENERAL_STATUS_VERSION,
NMC_GENERIC_INFO_TYPE_GENERAL_STATUS_STATE,
......@@ -117,6 +118,11 @@ typedef enum {
NMC_GENERIC_INFO_TYPE_GENERAL_STATUS_WIMAX_HW,
NMC_GENERIC_INFO_TYPE_GENERAL_STATUS_WIMAX,
_NMC_GENERIC_INFO_TYPE_GENERAL_STATUS_NUM,
NMC_GENERIC_INFO_TYPE_GENERAL_PERMISSIONS_PERMISSION = 0,
NMC_GENERIC_INFO_TYPE_GENERAL_PERMISSIONS_VALUE,
_NMC_GENERIC_INFO_TYPE_GENERAL_PERMISSIONS_NUM,
} NmcGenericInfoType;
struct _NmcMetaGenericInfo {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment