diff options
author | Thomas Haller <thaller@redhat.com> | 2016-01-10 15:13:20 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-01-10 15:52:47 +0100 |
commit | 8eb5e770c22fe54a7ff39a7c0bfdbc5f20223291 (patch) | |
tree | 53886e2fb27f90f66a43a27aedf6961f35ae6165 | |
parent | eb290224a87396116226228db4659b277fb9f40f (diff) | |
download | NetworkManager-8eb5e770c22fe54a7ff39a7c0bfdbc5f20223291.tar.gz |
device: pass NMPlatformLink instance as const pointer
-rw-r--r-- | src/devices/bluetooth/nm-bluez-manager.c | 2 | ||||
-rw-r--r-- | src/devices/nm-device-bond.c | 2 | ||||
-rw-r--r-- | src/devices/nm-device-bridge.c | 2 | ||||
-rw-r--r-- | src/devices/nm-device-ethernet.c | 2 | ||||
-rw-r--r-- | src/devices/nm-device-factory.c | 2 | ||||
-rw-r--r-- | src/devices/nm-device-factory.h | 4 | ||||
-rw-r--r-- | src/devices/nm-device-generic.c | 2 | ||||
-rw-r--r-- | src/devices/nm-device-generic.h | 2 | ||||
-rw-r--r-- | src/devices/nm-device-infiniband.c | 2 | ||||
-rw-r--r-- | src/devices/nm-device-ip-tunnel.c | 2 | ||||
-rw-r--r-- | src/devices/nm-device-macvlan.c | 2 | ||||
-rw-r--r-- | src/devices/nm-device-tun.c | 2 | ||||
-rw-r--r-- | src/devices/nm-device-veth.c | 2 | ||||
-rw-r--r-- | src/devices/nm-device-vlan.c | 2 | ||||
-rw-r--r-- | src/devices/nm-device-vxlan.c | 2 | ||||
-rw-r--r-- | src/devices/nm-device.c | 2 | ||||
-rw-r--r-- | src/devices/nm-device.h | 2 | ||||
-rw-r--r-- | src/devices/team/nm-team-factory.c | 2 | ||||
-rw-r--r-- | src/devices/wifi/nm-wifi-factory.c | 2 | ||||
-rw-r--r-- | src/devices/wwan/nm-wwan-factory.c | 2 | ||||
-rw-r--r-- | src/nm-manager.c | 2 |
21 files changed, 22 insertions, 22 deletions
diff --git a/src/devices/bluetooth/nm-bluez-manager.c b/src/devices/bluetooth/nm-bluez-manager.c index db98d2808c..6903356c8c 100644 --- a/src/devices/bluetooth/nm-bluez-manager.c +++ b/src/devices/bluetooth/nm-bluez-manager.c @@ -411,7 +411,7 @@ nm_bluez_manager_init (NMBluezManager *self) static NMDevice * create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore) { diff --git a/src/devices/nm-device-bond.c b/src/devices/nm-device-bond.c index 84ddffde5f..dfd1de6dfb 100644 --- a/src/devices/nm-device-bond.c +++ b/src/devices/nm-device-bond.c @@ -513,7 +513,7 @@ nm_device_bond_class_init (NMDeviceBondClass *klass) static NMDevice * create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore) { diff --git a/src/devices/nm-device-bridge.c b/src/devices/nm-device-bridge.c index 69b67c259e..843c5be499 100644 --- a/src/devices/nm-device-bridge.c +++ b/src/devices/nm-device-bridge.c @@ -461,7 +461,7 @@ nm_device_bridge_class_init (NMDeviceBridgeClass *klass) static NMDevice * create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore) { diff --git a/src/devices/nm-device-ethernet.c b/src/devices/nm-device-ethernet.c index b99f0671f5..a2396ec83f 100644 --- a/src/devices/nm-device-ethernet.c +++ b/src/devices/nm-device-ethernet.c @@ -1784,7 +1784,7 @@ nm_device_ethernet_class_init (NMDeviceEthernetClass *klass) static NMDevice * create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore) { diff --git a/src/devices/nm-device-factory.c b/src/devices/nm-device-factory.c index 07804da758..75731b14f2 100644 --- a/src/devices/nm-device-factory.c +++ b/src/devices/nm-device-factory.c @@ -83,7 +83,7 @@ nm_device_factory_start (NMDeviceFactory *factory) NMDevice * nm_device_factory_create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore, GError **error) diff --git a/src/devices/nm-device-factory.h b/src/devices/nm-device-factory.h index 7568b0fdfb..9b7cb35a1d 100644 --- a/src/devices/nm-device-factory.h +++ b/src/devices/nm-device-factory.h @@ -135,7 +135,7 @@ typedef struct { */ NMDevice * (*create_device) (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore); @@ -183,7 +183,7 @@ void nm_device_factory_start (NMDeviceFactory *factory); NMDevice * nm_device_factory_create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore, GError **error); diff --git a/src/devices/nm-device-generic.c b/src/devices/nm-device-generic.c index b05bdb1cc5..2e9c134a3d 100644 --- a/src/devices/nm-device-generic.c +++ b/src/devices/nm-device-generic.c @@ -111,7 +111,7 @@ update_connection (NMDevice *device, NMConnection *connection) /**************************************************************/ NMDevice * -nm_device_generic_new (NMPlatformLink *plink) +nm_device_generic_new (const NMPlatformLink *plink) { g_return_val_if_fail (plink != NULL, NULL); diff --git a/src/devices/nm-device-generic.h b/src/devices/nm-device-generic.h index 1b3fa7f9bc..9303a27891 100644 --- a/src/devices/nm-device-generic.h +++ b/src/devices/nm-device-generic.h @@ -45,7 +45,7 @@ typedef struct { GType nm_device_generic_get_type (void); -NMDevice *nm_device_generic_new (NMPlatformLink *plink); +NMDevice *nm_device_generic_new (const NMPlatformLink *plink); G_END_DECLS diff --git a/src/devices/nm-device-infiniband.c b/src/devices/nm-device-infiniband.c index 5a8bfbd43c..45df49fe02 100644 --- a/src/devices/nm-device-infiniband.c +++ b/src/devices/nm-device-infiniband.c @@ -364,7 +364,7 @@ nm_device_infiniband_class_init (NMDeviceInfinibandClass *klass) static NMDevice * create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore) { diff --git a/src/devices/nm-device-ip-tunnel.c b/src/devices/nm-device-ip-tunnel.c index a428e749af..11aabcbcad 100644 --- a/src/devices/nm-device-ip-tunnel.c +++ b/src/devices/nm-device-ip-tunnel.c @@ -980,7 +980,7 @@ nm_device_ip_tunnel_class_init (NMDeviceIPTunnelClass *klass) static NMDevice * create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore) { diff --git a/src/devices/nm-device-macvlan.c b/src/devices/nm-device-macvlan.c index 28421b4b3c..8123a7931f 100644 --- a/src/devices/nm-device-macvlan.c +++ b/src/devices/nm-device-macvlan.c @@ -691,7 +691,7 @@ nm_device_macvlan_class_init (NMDeviceMacvlanClass *klass) static NMDevice * create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore) { diff --git a/src/devices/nm-device-tun.c b/src/devices/nm-device-tun.c index d04cd7e641..b62b1beae8 100644 --- a/src/devices/nm-device-tun.c +++ b/src/devices/nm-device-tun.c @@ -496,7 +496,7 @@ nm_device_tun_class_init (NMDeviceTunClass *klass) static NMDevice * create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore) { diff --git a/src/devices/nm-device-veth.c b/src/devices/nm-device-veth.c index 986c93d8f9..a1bf0d219d 100644 --- a/src/devices/nm-device-veth.c +++ b/src/devices/nm-device-veth.c @@ -181,7 +181,7 @@ nm_device_veth_class_init (NMDeviceVethClass *klass) static NMDevice * create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore) { diff --git a/src/devices/nm-device-vlan.c b/src/devices/nm-device-vlan.c index 16f2bda077..27112c5a14 100644 --- a/src/devices/nm-device-vlan.c +++ b/src/devices/nm-device-vlan.c @@ -721,7 +721,7 @@ nm_device_vlan_class_init (NMDeviceVlanClass *klass) static NMDevice * create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore) { diff --git a/src/devices/nm-device-vxlan.c b/src/devices/nm-device-vxlan.c index 3dc238ec55..aaa26cf06a 100644 --- a/src/devices/nm-device-vxlan.c +++ b/src/devices/nm-device-vxlan.c @@ -792,7 +792,7 @@ nm_device_vxlan_class_init (NMDeviceVxlanClass *klass) static NMDevice * create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore) { diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index c0e0074cef..d1c698aa7f 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -1714,7 +1714,7 @@ link_type_compatible (NMDevice *self, */ gboolean nm_device_realize_start (NMDevice *self, - NMPlatformLink *plink, + const NMPlatformLink *plink, gboolean *out_compatible, GError **error) { diff --git a/src/devices/nm-device.h b/src/devices/nm-device.h index 997dd2d456..7c37be5e4c 100644 --- a/src/devices/nm-device.h +++ b/src/devices/nm-device.h @@ -468,7 +468,7 @@ gboolean nm_device_get_is_nm_owned (NMDevice *device); gboolean nm_device_has_capability (NMDevice *self, NMDeviceCapabilities caps); gboolean nm_device_realize_start (NMDevice *device, - NMPlatformLink *plink, + const NMPlatformLink *plink, gboolean *out_compatible, GError **error); void nm_device_realize_finish (NMDevice *self, diff --git a/src/devices/team/nm-team-factory.c b/src/devices/team/nm-team-factory.c index d30aa31747..5f9e142adb 100644 --- a/src/devices/team/nm-team-factory.c +++ b/src/devices/team/nm-team-factory.c @@ -50,7 +50,7 @@ nm_device_factory_create (GError **error) static NMDevice * create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore) { diff --git a/src/devices/wifi/nm-wifi-factory.c b/src/devices/wifi/nm-wifi-factory.c index 8fa16e728f..7f56dc744c 100644 --- a/src/devices/wifi/nm-wifi-factory.c +++ b/src/devices/wifi/nm-wifi-factory.c @@ -61,7 +61,7 @@ nm_device_factory_create (GError **error) static NMDevice * create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore) { diff --git a/src/devices/wwan/nm-wwan-factory.c b/src/devices/wwan/nm-wwan-factory.c index 97ef4161c9..2fd9e0bd97 100644 --- a/src/devices/wwan/nm-wwan-factory.c +++ b/src/devices/wwan/nm-wwan-factory.c @@ -98,7 +98,7 @@ NM_DEVICE_FACTORY_DECLARE_TYPES ( static NMDevice * create_device (NMDeviceFactory *factory, const char *iface, - NMPlatformLink *plink, + const NMPlatformLink *plink, NMConnection *connection, gboolean *out_ignore) { diff --git a/src/nm-manager.c b/src/nm-manager.c index ac3c5001af..338b3cd68a 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -1941,7 +1941,7 @@ _register_device_factory (NMDeviceFactory *factory, gpointer user_data) static void platform_link_added (NMManager *self, int ifindex, - NMPlatformLink *plink) + const NMPlatformLink *plink) { NMDeviceFactory *factory; NMDevice *device = NULL; |