mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 09:58:07 +02:00
device: pass NMPlatformLink instance as const pointer
This commit is contained in:
parent
633e105455
commit
2550850f54
21 changed files with 22 additions and 22 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue