2008-04-02 Dan Williams <dcbw@redhat.com>
* src/nm-device-interface.c src/nm-device-interface.h src/nm-device.c src/nm-device.h - Rename check_connection_conflicts() to check_connection_compatible() * src/nm-device-802-11-wireless.c - (real_check_connection_conflicts): remove - (real_check_connection_compatible): implement; match MAC address * src/nm-device-802-3-ethernet.c - (real_check_connection_conflicts): remove - (real_check_connection_compatible): implement; match MAC address - (real_get_best_auto_connection): correctly handle PPPoE cases * src/nm-manager.c - (check_connection_allowed): remove; unused until PolicyKit integration - (internal_activate_device): check whether the connection is compatible with the device before trying to activate it git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3527 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -175,18 +175,18 @@ nm_device_interface_get_iface (NMDeviceInterface *device)
|
||||
}
|
||||
|
||||
gboolean
|
||||
nm_device_interface_check_connection_conflicts (NMDeviceInterface *device,
|
||||
NMConnection *connection,
|
||||
NMConnection *system_connection)
|
||||
nm_device_interface_check_connection_compatible (NMDeviceInterface *device,
|
||||
NMConnection *connection,
|
||||
GError **error)
|
||||
{
|
||||
g_return_val_if_fail (NM_IS_DEVICE_INTERFACE (device), FALSE);
|
||||
g_return_val_if_fail (NM_IS_CONNECTION (connection), FALSE);
|
||||
g_return_val_if_fail (NM_IS_CONNECTION (system_connection), FALSE);
|
||||
g_return_val_if_fail (error != NULL, FALSE);
|
||||
g_return_val_if_fail (*error == NULL, FALSE);
|
||||
|
||||
if (!NM_DEVICE_INTERFACE_GET_INTERFACE (device)->check_connection_conflicts)
|
||||
return FALSE;
|
||||
|
||||
return NM_DEVICE_INTERFACE_GET_INTERFACE (device)->check_connection_conflicts (device, connection, system_connection);
|
||||
if (NM_DEVICE_INTERFACE_GET_INTERFACE (device)->check_connection_compatible)
|
||||
return NM_DEVICE_INTERFACE_GET_INTERFACE (device)->check_connection_compatible (device, connection, error);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
Reference in New Issue
Block a user