cdma: ensure the ActivationStateChanged signal exists

It's part of the D-Bus API, so it needs to be implemented somewhere
even if it's not used yet.
This commit is contained in:
Dan Williams
2011-02-25 12:26:30 -06:00
parent 7707117862
commit f340ce86cd
2 changed files with 13 additions and 1 deletions

View File

@@ -7,4 +7,4 @@ VOID:UINT,UINT,UINT
VOID:STRING,BOXED
VOID:POINTER,UINT
VOID:STRING,BOXED,BOXED
VOID:UINT,UINT,BOXED

View File

@@ -34,6 +34,7 @@ static void impl_modem_cdma_activate_manual (MMModemCdma *modem, DBusGMethodInvo
enum {
SIGNAL_QUALITY,
REGISTRATION_STATE_CHANGED,
ACTIVATION_STATE_CHANGED,
LAST_SIGNAL
};
@@ -348,6 +349,8 @@ mm_modem_cdma_emit_registration_state_changed (MMModemCdma *self,
/*****************************************************************************/
#define DBUS_TYPE_G_MAP_OF_VARIANT (dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE))
static void
mm_modem_cdma_init (gpointer g_iface)
{
@@ -385,6 +388,15 @@ mm_modem_cdma_init (gpointer g_iface)
mm_marshal_VOID__UINT_UINT,
G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
signals[ACTIVATION_STATE_CHANGED] =
g_signal_new ("activation-state-changed",
iface_type,
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (MMModemCdma, registration_state_changed),
NULL, NULL,
mm_marshal_VOID__UINT_UINT_BOXED,
G_TYPE_NONE, 3, G_TYPE_UINT, G_TYPE_UINT, DBUS_TYPE_G_MAP_OF_VARIANT);
initialized = TRUE;
}