Commit graph

9 commits

Author SHA1 Message Date
Georges Basile Stavracas Neto
120eb2f59e
network: Use #pragma once on headers
Another low hanging fruit that reduces even more the
number of lines of code of the headers.
2018-11-05 08:33:22 -02:00
Georges Basile Stavracas Neto
c4f34569c0
net-device: Remove GObject boilerplate
Now that NetDevice is a bit more clean, switch to
G_DECLARE_DERIVABLE_TYPE() and remove the old style
GObject boilerplate.
2018-11-05 08:31:49 -02:00
Georges Basile Stavracas Neto
118631e273
net-device: Remove private field from public structure
We can use pointer arithmetics to retrieve the private field.
2018-11-05 08:31:49 -02:00
Bastien Nocera
9183d34947 network: Port to libnm 1.2
We also remove support for WiMAX (now unsupported by NetworkManager),
and InfiniBand (Enterprise feature), and the use of
the deprecated NM_SETTING_WIRELESS_SEC property.

With help from network-manager-applet patches by Jiří Klimeš and
Dan Winship.

https://bugzilla.gnome.org/show_bug.cgi?id=765910
2016-05-27 18:23:33 +02:00
Dan Winship
ebd863e714 network: add net_device_get_valid_connections() and use it everywhere
In addition to simplifying a bunch of places that were calling
nm_remote_settings_list_connections() +
nm_device_filter_connections(), this also ensures we filter out slave
connections everywhere (except when they are the active connection).

https://bugzilla.gnome.org/show_bug.cgi?id=677145
2013-01-30 13:05:34 -05:00
Dan Winship
52d28579d2 network: add "virtual device" support, for bonds, bridges, and vlans
Bond, bridge, and VLAN devices may not actually exist until their
connections are brought up. So for those types, create device items
(of type NetVirtualDevice or a subclass) as soon as we see the
NMConnection, and then watch for the NMDevice being added later.

https://bugzilla.gnome.org/show_bug.cgi?id=677145
2013-01-30 13:05:34 -05:00
Richard Hughes
3c2a09294c network: Set the device properties at construct time
We need this for more complicated devices that need to contact other daemons,
for instance ModemManager.
2012-07-17 10:21:26 +01:00
Richard Hughes
cd765a1267 network: Export net_device_get_find_connection() so it can be used by future network devices 2012-07-17 10:21:26 +01:00
Richard Hughes
bb70c1bd1a network: use an abstract device so we can get the VPN connection data 2011-03-11 12:29:40 +00:00