supplicant-manager, wifi: (trivial) fix signal argument types

A few places in the NMSupplicantInterface API and in NMDeviceWifi's
use of it were still using "GHashTable *properties" where they should
have been using "GVariant *properties". (This didn't cause any actual
problems because nothing was looking at those arguments.)

(Also fix a comment typo.)
This commit is contained in:
Dan Winship 2015-04-06 16:09:18 -04:00
parent b5b568a49a
commit 37a5bfcbeb
3 changed files with 6 additions and 6 deletions

View file

@ -170,7 +170,7 @@ static void supplicant_iface_new_bss_cb (NMSupplicantInterface * iface,
static void supplicant_iface_bss_updated_cb (NMSupplicantInterface *iface,
const char *object_path,
GHashTable *properties,
GVariant *properties,
NMDeviceWifi *self);
static void supplicant_iface_bss_removed_cb (NMSupplicantInterface *iface,
@ -1865,7 +1865,7 @@ supplicant_iface_new_bss_cb (NMSupplicantInterface *iface,
static void
supplicant_iface_bss_updated_cb (NMSupplicantInterface *iface,
const char *object_path,
GHashTable *properties,
GVariant *properties,
NMDeviceWifi *self)
{
NMDeviceState state;
@ -1875,7 +1875,7 @@ supplicant_iface_bss_updated_cb (NMSupplicantInterface *iface,
g_return_if_fail (object_path != NULL);
g_return_if_fail (properties != NULL);
/* Ignore new APs when unavailable or unamnaged */
/* Ignore new APs when unavailable or unmanaged */
state = nm_device_get_state (NM_DEVICE (self));
if (state <= NM_DEVICE_STATE_UNAVAILABLE)
return;

View file

@ -1371,7 +1371,7 @@ nm_supplicant_interface_class_init (NMSupplicantInterfaceClass *klass)
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NMSupplicantInterfaceClass, bss_updated),
NULL, NULL, NULL,
G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_POINTER);
G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_VARIANT);
signals[BSS_REMOVED] =
g_signal_new (NM_SUPPLICANT_INTERFACE_BSS_REMOVED,

View file

@ -90,12 +90,12 @@ typedef struct {
/* interface saw a new BSS */
void (*new_bss) (NMSupplicantInterface *iface,
const char *object_path,
GHashTable *props);
GVariant *props);
/* a BSS property changed */
void (*bss_updated) (NMSupplicantInterface *iface,
const char *object_path,
GHashTable *props);
GVariant *props);
/* supplicant removed a BSS from its scan list */
void (*bss_removed) (NMSupplicantInterface *iface,