NetworkManager/clients/cli
Thomas Haller 4b3297271e cli: rework connection handling for multiple results
Functions like nmc_find_connection() and nmc_find_active_connection()
can easily find multiple matching results. For example, the
"connection.id" in NetworkManager is not enforced to be unique,
so if the user adds multiple connections with the same name,
they should be all selected.

The previous API had a @pos argument, that allowed to iterate over
the results. Change that, to return all matches in a GPtrArray.

Also, extend connection-show and other places, to anticipate that
a connection might be active multiple times in any moment.
2018-05-14 17:53:03 +02:00
..
agent.c all: remove consecutive empty lines 2018-04-30 16:24:52 +02:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c cli: rework connection handling for multiple results 2018-05-14 17:53:03 +02:00
common.h cli: rework connection handling for multiple results 2018-05-14 17:53:03 +02:00
connections.c cli: rework connection handling for multiple results 2018-05-14 17:53:03 +02:00
connections.h cli: use a palette to implement coloring 2018-05-10 14:36:58 +02:00
devices.c cli: use a palette to implement coloring 2018-05-10 14:36:58 +02:00
devices.h cli: use a palette to implement coloring 2018-05-10 14:36:58 +02:00
general.c cli: use a palette to implement coloring 2018-05-10 14:36:58 +02:00
general.h cli: output a short summary of devices when called without arguments 2016-07-19 14:29:05 +02:00
meson.build cli: allow setting the colors with terminal-colors.d(5) 2018-05-10 14:36:58 +02:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c cli: allow setting the colors with terminal-colors.d(5) 2018-05-10 14:36:58 +02:00
nmcli.h cli: cleanup code paths in "connections.c" 2018-05-14 17:53:03 +02:00
polkit-agent.c cli: rework callbacks in NMPolkitListener to use one vtable structure 2018-04-16 16:03:14 +02:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings.c all: use the elvis operator wherever possible 2018-05-10 14:36:58 +02:00
settings.h cli: move setting creation to meta data 2017-04-12 14:12:20 +02:00
utils.c cli: use a palette to implement coloring 2018-05-10 14:36:58 +02:00
utils.h cli: use a palette to implement coloring 2018-05-10 14:36:58 +02:00