NetworkManager/libnm
Dan Winship 69099f3e80 libnm: merge device-type-specific errors into NMDeviceError
As with the settings, each device type was defining its own error
type, containing either redundant or non-useful error codes. Drop all
of the subtype-specific errors, and reduce things to just
NM_DEVICE_ERROR_FAILED, NM_DEVICE_ERROR_INCOMPATIBLE_CONNECTION, and
NM_DEVICE_ERROR_INVALID_CONNECTION.

The device-type-specific errors were only returned from their
nm_device_connection_compatible() implementations, so this is also a
good opportunity to simplify those, by moving duplicated functionality
into the base NMDevice implementation, and then allowing the
subclasses to assume that the connection has already been validated in
their own code. Most of the implementations now just check that the
connection has the correct type for the device (which can't be done at
the NMDevice level since some device types (eg, Ethernet) support
multiple connection types.)

Also, make sure that all of the error messages are localized.
2014-10-22 08:29:08 -04:00
..
tests libnm-core, core: register NMConnectionError with D-Bus 2014-10-22 08:29:08 -04:00
libnm.pc.in libnm: add libnm/libnm-core (part 2) 2014-08-01 14:34:04 -04:00
libnm.ver libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
Makefile.am libnm: add nm-types.h, to avoid include loops 2014-10-10 13:10:18 -04:00
NetworkManager.h libnm: merge NMRemoteSettings into NMClient 2014-10-10 12:40:19 -04:00
nm-access-point.c libnm: make use of GParamSpecFlags and GParamSpecEnum 2014-10-03 09:36:28 -04:00
nm-access-point.h libnm: add nm-types.h, to avoid include loops 2014-10-10 13:10:18 -04:00
nm-active-connection.c libnm: fix NMActiveConnection:specific-object-path 2014-10-21 09:45:20 -04:00
nm-active-connection.h libnm: fix NMActiveConnection object-path-valued properties 2014-10-10 13:10:19 -04:00
nm-client.c libnm: fix crash in nm_client_new_async(), add a test for it 2014-10-10 13:44:54 -04:00
nm-client.h libnm: add nm-types.h, to avoid include loops 2014-10-10 13:10:18 -04:00
nm-dbus-helpers.c libnm: share private DBUS connection 2014-10-03 11:21:40 +02:00
nm-dbus-helpers.h libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-device-adsl.c libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-adsl.h libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-bond.c libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-bond.h libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-bridge.c libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-bridge.h libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-bt.c libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-bt.h libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-ethernet.c libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-ethernet.h libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-generic.c libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-generic.h libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-infiniband.c libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-infiniband.h libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-modem.c libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-modem.h libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-olpc-mesh.c libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-olpc-mesh.h libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-private.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device-team.c libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-team.h libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-vlan.c libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-vlan.h libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-wifi.c libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-wifi.h libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-wimax.c libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device-wimax.h libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device.c libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-device.h libnm: merge device-type-specific errors into NMDeviceError 2014-10-22 08:29:08 -04:00
nm-dhcp4-config.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-dhcp4-config.h libnm: add nm-types.h, to avoid include loops 2014-10-10 13:10:18 -04:00
nm-dhcp6-config.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-dhcp6-config.h libnm: add nm-types.h, to avoid include loops 2014-10-10 13:10:18 -04:00
nm-ip4-config.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-ip4-config.h libnm: add nm-types.h, to avoid include loops 2014-10-10 13:10:18 -04:00
nm-ip6-config.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-ip6-config.h libnm: add nm-types.h, to avoid include loops 2014-10-10 13:10:18 -04:00
nm-manager.c libnm: postpone activation callback until all objects are ready 2014-10-19 09:26:50 -04:00
nm-manager.h libnm: add -added and -removed signals for ACs to NMManager 2014-10-19 09:26:49 -04:00
nm-object-cache.c libnm: add libnm/libnm-core (part 1) 2014-08-01 14:34:04 -04:00
nm-object-cache.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-object-private.h libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-object.c libnm: fix NMActiveConnection:specific-object-path 2014-10-21 09:45:20 -04:00
nm-object.h libnm: add nm-types.h, to avoid include loops 2014-10-10 13:10:18 -04:00
nm-remote-connection-private.h libnm: add libnm/libnm-core (part 1) 2014-08-01 14:34:04 -04:00
nm-remote-connection.c libnm: drop unused NMRemoteConnectionError 2014-10-22 08:29:08 -04:00
nm-remote-connection.h libnm: drop unused NMRemoteConnectionError 2014-10-22 08:29:08 -04:00
nm-remote-settings.c libnm: further NULL-vs-empty-array fixes 2014-10-19 09:26:49 -04:00
nm-remote-settings.h libnm: add nm-types.h, to avoid include loops 2014-10-10 13:10:18 -04:00
nm-secret-agent.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-secret-agent.h libnm: add nm-types.h, to avoid include loops 2014-10-10 13:10:18 -04:00
nm-types.h libnm: add nm-types.h, to avoid include loops 2014-10-10 13:10:18 -04:00
nm-vpn-connection.c libnm: make use of GParamSpecFlags and GParamSpecEnum 2014-10-03 09:36:28 -04:00
nm-vpn-connection.h libnm: add nm-types.h, to avoid include loops 2014-10-10 13:10:18 -04:00
nm-vpn-plugin-ui-interface.c libnm: merge libnm-vpn into libnm 2014-09-18 11:51:07 -04:00
nm-vpn-plugin-ui-interface.h libnm: merge libnm-vpn into libnm 2014-09-18 11:51:07 -04:00
nm-vpn-plugin-utils.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-vpn-plugin-utils.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-vpn-plugin.c libnm-core: drop nm_setting_lookup_type_by_quark() 2014-10-22 08:29:07 -04:00
nm-vpn-plugin.h libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-wimax-nsp.c libnm: make use of GParamSpecFlags and GParamSpecEnum 2014-10-03 09:36:28 -04:00
nm-wimax-nsp.h libnm: add nm-types.h, to avoid include loops 2014-10-10 13:10:18 -04:00