summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-bridge.h
Commit message (Collapse)AuthorAgeFilesLines
* bridge: move the Bluetooth NAP logic to bridge devicelr/bluetooth-napLubomir Rintel2017-06-011-0/+2
| | | | | The Bluetooth NAP functionality seems only useful for the bridges. Move it away from NMDevice.
* core: refactor private data in "src"Thomas Haller2016-10-041-2/+2
| | | | | | | | | | | | | | | | - use _NM_GET_PRIVATE() and _NM_GET_PRIVATE_PTR() everywhere. - reorder statements, to have GObject related functions (init, dispose, constructed) at the bottom of each file and in a consistent order w.r.t. each other. - unify whitespaces in signal and properties declarations. - use NM_GOBJECT_PROPERTIES_DEFINE() and _notify() - drop unused signal slots in class structures - drop unused header files for device factories
* all: cleanup includes in header filesThomas Haller2016-08-171-6/+1
| | | | | | | | | | | | - don't include "nm-default.h" in header files. Every source file must include as first header "nm-default.h", thus our headers get the default include already implicitly. - we don't support compiling NetworkManager itself with a C++ compiler. Remove G_BEGIN_DECLS/G_END_DECLS from internal headers. We do however support users of libnm to use C++, thus they stay in public headers. (cherry picked from commit f19aff89095ca192b8b2e37534b7a899aecd82f9)
* device: implement slave property in parent device classThomas Haller2015-12-051-2/+0
| | | | | | | | | | | | | | | Instead of reimplementing the slave property in bond, bridge and team, just add the property to the parent class. It's not that the parent class would be agnostic to the master/slave implementation, all the slaves are known to the every device type implementation. Also, the derived class doesn't know the correct time when to invoke the notify-changed for the slaves property. E.g. it should be only invoked after nm_device_slave_notify_enslave() when other components also consider the slave as enslaved. Later this will be fixed so that the SLAVES property correspond to what other master/slave related properties say.
* all: make use of new header file "nm-default.h"Thomas Haller2015-08-051-1/+1
|
* all: rename nm-glib-compat.h to nm-glib.h, use everywhereDan Winship2015-07-241-2/+1
| | | | | | | | | | | | | | | | Rather than randomly including one or more of <glib.h>, <glib-object.h>, and <gio/gio.h> everywhere (and forgetting to include "nm-glib-compat.h" most of the time), rename nm-glib-compat.h to nm-glib.h, include <gio/gio.h> from there, and then change all .c files in NM to include "nm-glib.h" rather than including the glib headers directly. (Public headers files still have to include the real glib headers, since nm-glib.h isn't installed...) Also, remove glib includes from header files that are already including a base object header file (which must itself already include the glib headers).
* 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.