NetworkManager/clients/cli
Thomas Haller b81bbc134c 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().

(cherry picked from commit 8a14851f93)
2015-06-19 13:18:16 +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 device,libnm,cli: add "new-activation" reason for device state change 2015-04-14 17:04:31 +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-19 13:18:16 +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:24:25 -04:00
devices.h clients: reorganize source tree, put all the installed clients together 2014-07-30 15:56:19 -04:00
general.c cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01: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 nmcli/bash-completion: don't allow specifying connection by apath for 'connection modify' 2014-12-22 15:41:49 +01:00
nmcli.c libnm: rename NMSecretAgent to NMSecretAgentOld 2014-11-21 12:17:41 -05:00
nmcli.h libnm: rename NMSecretAgent to NMSecretAgentOld 2014-11-21 12:17:41 -05: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-19 13:18:16 +02:00
settings.h cli: refactor property to string conversion 2015-06-19 13:18:16 +02:00
utils.c cli: add @brackets parameter to nmc_util_strv_for_display 2015-06-15 10:31:20 +02:00
utils.h cli: add @brackets parameter to nmc_util_strv_for_display 2015-06-15 10:31:20 +02:00