diff options
author | Dan Williams <dcbw@redhat.com> | 2011-01-10 23:39:12 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-01-10 23:39:12 -0600 |
commit | 215306f5a1e4dc38ec02a484c31470bb048d668b (patch) | |
tree | a4a62c495dd81427bfbe18119446914085e5f299 /src/nm-device-modem.c | |
parent | bf98469b8d7b9efe0dfd6e8117e1bcff30ef2c16 (diff) | |
download | NetworkManager-215306f5a1e4dc38ec02a484c31470bb048d668b.tar.gz |
core: add AddAndActivate D-Bus method
Given connection details, complete the connection as well as possible
using the given specific object and device, add it to system
settings, and activate it all in one method.
Diffstat (limited to 'src/nm-device-modem.c')
-rw-r--r-- | src/nm-device-modem.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nm-device-modem.c b/src/nm-device-modem.c index 440db82f2a..362ff8575c 100644 --- a/src/nm-device-modem.c +++ b/src/nm-device-modem.c @@ -221,6 +221,18 @@ real_check_connection_compatible (NMDevice *device, } static gboolean +real_complete_connection (NMDevice *device, + NMConnection *connection, + const char *specific_object, + const GSList *existing_connections, + GError **error) +{ + NMDeviceModemPrivate *priv = NM_DEVICE_MODEM_GET_PRIVATE (device); + + return nm_modem_complete_connection (priv->modem, connection, existing_connections, error); +} + +static gboolean real_hw_is_up (NMDevice *device) { return nm_modem_hw_is_up (NM_DEVICE_MODEM_GET_PRIVATE (device)->modem, device); @@ -401,6 +413,7 @@ nm_device_modem_class_init (NMDeviceModemClass *mclass) device_class->get_generic_capabilities = real_get_generic_capabilities; device_class->get_best_auto_connection = real_get_best_auto_connection; device_class->check_connection_compatible = real_check_connection_compatible; + device_class->complete_connection = real_complete_connection; device_class->hw_is_up = real_hw_is_up; device_class->hw_bring_up = real_hw_bring_up; device_class->deactivate_quickly = real_deactivate_quickly; |