summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-bridge.h
Commit message (Collapse)AuthorAgeFilesLines
* devices: drop device-type-specific error domainsDan Winship2014-10-221-6/+0
| | | | | | Most NMDevice types defined their own error domain but then never used it. A few did use their errors, but some of those errors are redundant with NMDeviceError, and others can be added to it.
* bridge: port to internal device factoryDan Williams2014-09-111-12/+2
|
* all: fix up multiple-include-guard definesDan Winship2014-08-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Previously, src/nm-ip4-config.h, libnm/nm-ip4-config.h, and libnm-glib/nm-ip4-config.h all used "NM_IP4_CONFIG_H" as an include guard, which meant that nm-test-utils.h could not tell which of them was being included (and so, eg, if you tried to include nm-ip4-config.h in a libnm test, it would fail to compile because nm-test-utils.h was referring to symbols in src/nm-ip4-config.h). Fix this by changing the include guards in the non-API-stable parts of the tree: - libnm-glib/nm-ip4-config.h remains NM_IP4_CONFIG_H - libnm/nm-ip4-config.h now uses __NM_IP4_CONFIG_H__ - src/nm-ip4-config.h now uses __NETWORKMANAGER_IP4_CONFIG_H__ And likewise for all other headers. The two non-"nm"-prefixed headers, libnm/NetworkManager.h and src/NetworkManagerUtils.h are now __NETWORKMANAGER_H__ and __NETWORKMANAGER_UTILS_H__ respectively, which, while not entirely consistent with the general scheme, do still mostly make sense in isolation.
* core: refactor update_slave_connection() as virtual function of master deviceThomas Haller2014-06-271-2/+0
| | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
* core: support slave devices in nm_platform_generate_connection()Pavel Šimerda2013-11-081-0/+2
| | | | | Ask each device class to update the slave configuration for their type of slave.
* core: move software device creation logic out of NMManagerDan Winship2013-09-121-1/+2
| | | | | | | Rather than having NMManager know how to parse various settings to create each kind of software device, add a _new_for_connection() constructor to each of them and let them call NMPlatform to create the device correctly themselves.
* core: update UDI when it's availableDan Williams2013-08-071-2/+1
| | | | | | | | | | | | | | | | | | | Software devices don't have a UDI until udev finds them, and since we need to know about the software devices before udev finds them the UDI will be missing. Instead of requiring a UDI on NMDevice creation, update the property from the NMPlatform link change signal when udev does find the device. Now that a UDI is no longer required for device creation, software devices added by NM would be created in the platform_link_added_cb() signal handler triggered by the various software device creation methods in system_create_virtual_device() (eg nm_platform_bridge_add() etc). Then the NMDevice created in system_create_virtual_device() would be a duplicate and cause problems when it was added. Since system_create_virtual_device() needs to do setup on some devices, suppress the device creation from the platform link added handler in this function. Much of this is a hack which should be cleaned up later.
* core: remove NMDeviceWiredDan Winship2013-05-201-3/+3
| | | | | | With carrier handling moved to NMDevice, the only thing left in NMDeviceWired was speed, which was actually ethernet-specific anyway. So move that to NMDeviceEthernet, and then kill NMDeviceWired.
* core: move carrier handling to NMDeviceDan Winship2013-05-201-1/+0
| | | | | | Move carrier handling for most device types into NMDevice. Based on an earlier patch by Pavel Šimerda.
* core: make nm-properties-changed-signal always export the right propertiesDan Winship2013-05-201-2/+0
| | | | | | | | | | Change the way that nm-properties-changed-signal works, and parse the dbus-binding-tool-generated info to get the exact list of properties that it's expected to export. This makes NM_PROPERTY_PARAM_NO_EXPORT unnecessary, and also fixes the problem of properties like NMDevice:hw-address being exported on classes where it shouldn't be.
* core: belatedly remove "hw-address" property #definesDan Winship2013-05-201-1/+0
|
* core: move devices into a subdirectoryDan Winship2013-05-081-0/+66
We have lots of device types and will soon have lots more, so let's put them in their own directory.