NetworkManager/clients/cli
Thomas Haller 347118138d cli: rework callbacks in NMPolkitListener to use one vtable structure
Instead of setting multiple callbacks, just let the user set one
vtable with callbacks. Usually, GObject would implement this via
signals. While that makes sense for public objects, for example to
work better with GIR and allow intercepting the signal, this is
overkill for our internal type. And NMPolkitListener already did
not make use of signals, for good reason.

Instead of passing multiple callbacks, must pass one structure with
callback pointers.

Also, extend the signature of the callbacks to always contain a
@self argument and a @user_data.
2018-04-16 16:03:14 +02:00
..
agent.c nmcli/agent: fix handling of polkit agent failure 2018-01-24 09:53:38 +01:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c clients: set @out_is_default in property getters 2018-04-13 17:02:55 +02:00
common.h build: move nm-client-utils.c to libnmc-base.a 2017-10-16 17:25:35 +02:00
connections.c cli: fix connections completion 2018-02-13 16:09:16 +01:00
connections.h cli: move and rename TermColor and TermFormat 2017-04-05 16:53:06 +02:00
devices.c libnm-core: move detection of UTF-8 capable terminals to clients/ 2017-12-18 14:47:37 +01:00
devices.h cli: move and rename TermColor and TermFormat 2017-04-05 16:53:06 +02:00
general.c clients: change nm_meta_abstract_info_get() to report defaults 2018-04-13 17:02:55 +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 build/meson: use variables for ldflags and linker-script 2018-01-11 12:46:01 +01:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c nmcli: add overview option to skip default values in output 2018-04-13 17:02:55 +02:00
nmcli.h cli: rework callbacks in NMPolkitListener to use one vtable structure 2018-04-16 16:03:14 +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 clients: change nm_meta_abstract_info_get() to report defaults 2018-04-13 17:02:55 +02:00
settings.h cli: move setting creation to meta data 2017-04-12 14:12:20 +02:00
utils.c nmcli: add overview option to skip default values in output 2018-04-13 17:02:55 +02:00
utils.h clients: change nm_meta_abstract_info_get() to report defaults 2018-04-13 17:02:55 +02:00