NetworkManager/clients/cli
Thomas Haller 8a14851f93 cli: refactor property to string conversion
Instead of having a get_func() and out2in_func(), have only one
get_func() that accepts an argument of the output format.

This way, a conversion to parsable input format, doesn't have to go
first thourgh get_func() and mangle the pretty string in out2in_func().

This fixes conversions via nmc_property_out2in_cut_paren().
For example, nmc_property_802_1X_get_private_key_password_flags()
would return a localized string _("0 (none)"). There is no guarantee
that out2in_func() would find the expected output format after
localizing.

This also fixes nmc_property_out2in_routes() which expected
a format "dst =" (would be "ip =") and expects mandatory
'nh' and 'mt' arguments. In fact, the regex didn't match and
nmc_property_out2in_routes() always failed.

While at it, also combine the implementation of
nmc_property_ipv4_get_routes() and nmc_property_ipv6_get_routes().
2015-06-05 12:26:48 +02:00
..
agent.c clients: merge nm_secret_agent_simple_set_connection_path() into nm_secret_agent_simple_enable() 2014-11-21 12:14:48 -05:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c core/cli: add missing device state-reason to string conversions 2015-05-27 11:11:47 +02:00
common.h cli: add support for secret agent to 'nmcli dev connect' too 2014-11-20 16:36:29 +01:00
connections.c cli: refactor property to string conversion 2015-06-05 12:26:48 +02:00
connections.h clients: reorganize source tree, put all the installed clients together 2014-07-30 15:56:19 -04:00
devices.c cli: stop waiting for deactivation if device reaches unmanaged state 2015-04-23 10:22:26 -04:00
devices.h clients: reorganize source tree, put all the installed clients together 2014-07-30 15:56:19 -04:00
general.c wimax: drop WiMAX support (bgo #747846) 2015-04-17 12:42:23 -04:00
general.h cli: rename network-manager.[ch] to general.[ch] 2014-10-01 11:53:07 +02:00
Makefile.am cli, libnm: don't use D-Bus-specific documentation in nmcli 2014-11-19 09:24:10 -05:00
nmcli-completion wimax: drop WiMAX support (bgo #747846) 2015-04-17 12:42:23 -04:00
nmcli.c nmcli: add global '--colors' option for controlling color output 2015-02-23 09:24:21 +01:00
nmcli.h nmcli: add global '--colors' option for controlling color output 2015-02-23 09:24:21 +01:00
polkit-agent.c cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings-docs.xsl clients: reorganize source tree, put all the installed clients together 2014-07-30 15:56:19 -04:00
settings.c cli: refactor property to string conversion 2015-06-05 12:26:48 +02:00
settings.h cli: refactor property to string conversion 2015-06-05 12:26:48 +02:00
utils.c cli: add @brackets parameter to nmc_util_strv_for_display 2015-05-28 10:13:51 +02:00
utils.h cli: add @brackets parameter to nmc_util_strv_for_display 2015-05-28 10:13:51 +02:00