Commit e1738c7c authored by Thomas Haller's avatar Thomas Haller

core: use define for NMDnsMasqManager's "state-changed" signal name

parent ee4ec4e6
......@@ -6340,7 +6340,7 @@ start_sharing (NMDevice *self, NMIP4Config *config)
return FALSE;
}
priv->dnsmasq_state_id = g_signal_connect (priv->dnsmasq_manager, "state-changed",
priv->dnsmasq_state_id = g_signal_connect (priv->dnsmasq_manager, NM_DNS_MASQ_MANAGER_STATE_CHANGED,
G_CALLBACK (dnsmasq_state_changed_cb),
self);
return TRUE;
......
......@@ -82,14 +82,14 @@ nm_dnsmasq_manager_class_init (NMDnsMasqManagerClass *manager_class)
/* signals */
signals[STATE_CHANGED] =
g_signal_new ("state-changed",
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (NMDnsMasqManagerClass, state_changed),
NULL, NULL,
g_cclosure_marshal_VOID__UINT,
G_TYPE_NONE, 1,
G_TYPE_UINT);
g_signal_new (NM_DNS_MASQ_MANAGER_STATE_CHANGED,
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (NMDnsMasqManagerClass, state_changed),
NULL, NULL,
g_cclosure_marshal_VOID__UINT,
G_TYPE_NONE, 1,
G_TYPE_UINT);
}
NMDnsMasqManager *
......
......@@ -32,6 +32,9 @@
#define NM_IS_DNSMASQ_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_DNSMASQ_MANAGER))
#define NM_DNSMASQ_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_DNSMASQ_MANAGER, NMDnsMasqManagerClass))
/* signals */
#define NM_DNS_MASQ_MANAGER_STATE_CHANGED "state-changed"
typedef enum {
NM_DNSMASQ_STATUS_UNKNOWN,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment