libnm: make the the use of GInitable mandatory
authorDan Winship <danw@gnome.org>
Thu, 15 May 2014 18:25:07 +0000 (14:25 -0400)
committerDan Winship <danw@gnome.org>
Fri, 1 Aug 2014 18:34:40 +0000 (14:34 -0400)
commit258e74eb0c191cdd86719ad65864ab3c27ada80c
tree29d5a0d72ca94d1ea7daaa6c19ef745db31806fd
parent8ca2998d81ca7534c59262b10f5bf3c480177b88
libnm: make the the use of GInitable mandatory

Remove _nm_object_ensure_inited(), etc; objects that implement
GInitable are now mandatory-to-init().

Remove constructor() implementations that sometimes return NULL; do
all the relevant checking in init() instead.

Make nm_client_new() and nm_remote_settings_new() take a GCancellable
and a GError**.
44 files changed:
clients/cli/connections.c
clients/cli/network-manager.c
clients/cli/nmcli.c
clients/nm-online.c
clients/tui/nmtui.c
examples/C/glib/add-connection-libnm.c
examples/C/glib/get-ap-info-libnm.c
examples/C/glib/list-connections-libnm.c
examples/python/gi/device-state-ip4config.py
examples/python/gi/get-active-connections.py
examples/python/gi/get_ips.py
examples/python/gi/show-wifi-networks.py
libnm-core/nm-setting.c
libnm/nm-access-point.c
libnm/nm-active-connection.c
libnm/nm-client.c
libnm/nm-client.h
libnm/nm-device-adsl.c
libnm/nm-device-bond.c
libnm/nm-device-bridge.c
libnm/nm-device-bt.c
libnm/nm-device-ethernet.c
libnm/nm-device-generic.c
libnm/nm-device-infiniband.c
libnm/nm-device-modem.c
libnm/nm-device-olpc-mesh.c
libnm/nm-device-team.c
libnm/nm-device-vlan.c
libnm/nm-device-wifi.c
libnm/nm-device-wimax.c
libnm/nm-device.c
libnm/nm-dhcp4-config.c
libnm/nm-dhcp6-config.c
libnm/nm-ip4-config.c
libnm/nm-ip6-config.c
libnm/nm-object-private.h
libnm/nm-object.c
libnm/nm-remote-connection.c
libnm/nm-remote-settings.c
libnm/nm-remote-settings.h
libnm/nm-vpn-connection.c
libnm/nm-vpn-plugin.c
libnm/nm-wimax-nsp.c
libnm/tests/test-remote-settings-client.c