NetworkManager/clients/cli
Thomas Haller bfb9fd0d2f cli: split tracking of meta data out of NmcOutputField
When generating output data, nmcli iterates over a list of
property-descriptors (nmc_fields_ip4_config), creates an intermediate
array (output_data) and finally prints it.

However, previously both the meta data (nmc_fields_ip4_config) and
the intermediate format use the same type NmcOutputField. This means,
certain fields are relevant to describe a property, and other fields
are output/formatting fields.

Split this up. Now, the meta data is tracked in form of an NMMetaAbstractInfo
lists. This separates the information about properties from intermediate steps
during creation of the output.

Note that currently functions like print_ip4_config() still have all the
knowledge about how to generate the output. That is wrong, instead, the
meta data (NMMetaAbstractInfo) should describe how to create the output
and then all those functions could be replaced. This means, later we want
to add more knowledge to the NMMetaAbstractInfo, so it is important to
keep them separate from NmcOutputField.
2017-04-05 16:53:06 +02:00
..
agent.c nmcli: allow cmd specific option parsing in next_arg() func 2017-04-05 15:43:40 +02:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c cli: split tracking of meta data out of NmcOutputField 2017-04-05 16:53:06 +02:00
common.h cli: split tracking of meta data out of NmcOutputField 2017-04-05 16:53:06 +02:00
connections.c cli: split tracking of meta data out of NmcOutputField 2017-04-05 16:53:06 +02:00
connections.h cli: split tracking of meta data out of NmcOutputField 2017-04-05 16:53:06 +02:00
devices.c cli: split tracking of meta data out of NmcOutputField 2017-04-05 16:53:06 +02:00
devices.h cli: split tracking of meta data out of NmcOutputField 2017-04-05 16:53:06 +02:00
general.c cli: split tracking of meta data out of NmcOutputField 2017-04-05 16:53:06 +02:00
general.h cli: output a short summary of devices when called without arguments 2016-07-19 14:29:05 +02:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c cli: split tracking of meta data out of NmcOutputField 2017-04-05 16:53:06 +02:00
nmcli.h cli: split tracking of meta data out of NmcOutputField 2017-04-05 16:53:06 +02:00
polkit-agent.c all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings.c cli: split tracking of meta data out of NmcOutputField 2017-04-05 16:53:06 +02:00
settings.h cli: split out new file "nm-meta-setting-access.h" 2017-04-05 16:53:06 +02:00
utils.c cli: split tracking of meta data out of NmcOutputField 2017-04-05 16:53:06 +02:00
utils.h cli: split tracking of meta data out of NmcOutputField 2017-04-05 16:53:06 +02:00