mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-23 11:14:29 +00:00
2008-03-31 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-client.c libnm-glib/nm-client.h - (activate_cb): pass the new active connection to callback; fix message when no callback is specified git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3518 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
9498555625
commit
59731b9cbd
|
@ -1,3 +1,10 @@
|
|||
2008-03-31 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* libnm-glib/nm-client.c
|
||||
libnm-glib/nm-client.h
|
||||
- (activate_cb): pass the new active connection to callback; fix
|
||||
message when no callback is specified
|
||||
|
||||
2008-03-30 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* libnm-util/nm-setting-wireless-security.c
|
||||
|
|
|
@ -603,18 +603,16 @@ typedef struct {
|
|||
|
||||
static void
|
||||
activate_cb (DBusGProxy *proxy,
|
||||
char *active_connection,
|
||||
GError *err,
|
||||
char *path,
|
||||
GError *error,
|
||||
gpointer user_data)
|
||||
{
|
||||
ActivateDeviceInfo *info = (ActivateDeviceInfo *) user_data;
|
||||
|
||||
if (info->fn)
|
||||
info->fn (info->user_data, err);
|
||||
else
|
||||
nm_warning ("Device activation failed: %s", err->message);
|
||||
|
||||
/* FIXME: Free err as well? */
|
||||
info->fn (info->user_data, path, error);
|
||||
else if (error)
|
||||
nm_warning ("Device activation failed: (%d) %s", error->code, error->message);
|
||||
|
||||
g_slice_free (ActivateDeviceInfo, info);
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ NMClient *nm_client_new (void);
|
|||
const GPtrArray *nm_client_get_devices (NMClient *client);
|
||||
NMDevice *nm_client_get_device_by_path (NMClient *client, const char *object_path);
|
||||
|
||||
typedef void (*NMClientActivateDeviceFn) (gpointer user_data, GError *error);
|
||||
typedef void (*NMClientActivateDeviceFn) (gpointer user_data, const char *object_path, GError *error);
|
||||
|
||||
void nm_client_activate_connection (NMClient *client,
|
||||
const char *service_name,
|
||||
|
|
Loading…
Reference in a new issue