NetworkManager/clients/cli
Thomas Haller d39f5c264b cli: pass cmd to NMCCommand.func()
It is useful from inside a function to know the command that it belongs to.
Currently we have do_networking_on() and do_networking_off() as separate
functions. However, these are basically the same with a minor difference.
If the func callback could know the "cmd" that it was called for, these
function can be combined.

Of course, without passing the NMCCommand instance, you still can
achieve the same results, especially as the NMCCommand instances are
static and known at compile time: just have separate func
implementations. But by passing the command to the function, they
*can* be combined, which is a useful thing to do.
2020-04-10 10:27:27 +02:00
..
agent.c cli: pass cmd to NMCCommand.func() 2020-04-10 10:27:27 +02:00
common.c cli: pass cmd to NMCCommand.func() 2020-04-10 10:27:27 +02:00
common.h cli: cleanup NMCCommand and declarations of func implementations 2020-04-10 10:27:27 +02:00
connections.c cli: pass cmd to NMCCommand.func() 2020-04-10 10:27:27 +02:00
connections.h cli: cleanup NMCCommand and declarations of func implementations 2020-04-10 10:27:27 +02:00
devices.c cli: pass cmd to NMCCommand.func() 2020-04-10 10:27:27 +02:00
devices.h cli: cleanup NMCCommand and declarations of func implementations 2020-04-10 10:27:27 +02:00
general.c cli: pass cmd to NMCCommand.func() 2020-04-10 10:27:27 +02:00
meson.build license: Add license using SPDX identifiers to meson build files 2020-02-17 13:16:57 +01:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c cli: cleanup NMCCommand and declarations of func implementations 2020-04-10 10:27:27 +02:00
nmcli.h cli: pass cmd to NMCCommand.func() 2020-04-10 10:27:27 +02:00
polkit-agent.c clients: polkit-agent: implement polkit agent without using libpolkit 2019-12-24 10:13:51 +01:00
polkit-agent.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
settings.c cli: hide nm_cli global variable from public headers 2020-04-04 19:28:41 +02:00
settings.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
utils.c cli: avoid using nm_cli global variable in print_data() 2020-04-04 19:28:41 +02:00
utils.h cli: avoid using nm_cli global variable in print_data() 2020-04-04 19:28:41 +02:00