mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-14 04:20:21 +01:00
ndisc: rename NM_NDISC_RA_TIMEOUT signal to NM_NDISC_RA_TIMEOUT_SIGNAL
We will add a property NM_NDISC_RA_TIMEOUT for which this name is better
suited. The problem is really that our convention for object properties
and signals defines have no prefix to indicate whether it's a property
or a signal.
Rename.
(cherry picked from commit 10f0253f2e)
This commit is contained in:
parent
7c86bc9c97
commit
1f4c8a0f54
4 changed files with 8 additions and 8 deletions
|
|
@ -10086,7 +10086,7 @@ addrconf6_start_with_link_ready (NMDevice *self)
|
|||
G_CALLBACK (ndisc_config_changed),
|
||||
self);
|
||||
priv->ndisc_timeout_id = g_signal_connect (priv->ndisc,
|
||||
NM_NDISC_RA_TIMEOUT,
|
||||
NM_NDISC_RA_TIMEOUT_SIGNAL,
|
||||
G_CALLBACK (ndisc_ra_timeout),
|
||||
self);
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ NM_GOBJECT_PROPERTIES_DEFINE_BASE (
|
|||
|
||||
enum {
|
||||
CONFIG_RECEIVED,
|
||||
RA_TIMEOUT,
|
||||
RA_TIMEOUT_SIGNAL,
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
|
|
@ -898,7 +898,7 @@ ndisc_ra_timeout_cb (gpointer user_data)
|
|||
NMNDisc *ndisc = NM_NDISC (user_data);
|
||||
|
||||
NM_NDISC_GET_PRIVATE (ndisc)->ra_timeout_id = 0;
|
||||
g_signal_emit (ndisc, signals[RA_TIMEOUT], 0);
|
||||
g_signal_emit (ndisc, signals[RA_TIMEOUT_SIGNAL], 0);
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
|
|
@ -1479,8 +1479,8 @@ nm_ndisc_class_init (NMNDiscClass *klass)
|
|||
0,
|
||||
NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 2, G_TYPE_POINTER, G_TYPE_UINT);
|
||||
signals[RA_TIMEOUT] =
|
||||
g_signal_new (NM_NDISC_RA_TIMEOUT,
|
||||
signals[RA_TIMEOUT_SIGNAL] =
|
||||
g_signal_new (NM_NDISC_RA_TIMEOUT_SIGNAL,
|
||||
G_OBJECT_CLASS_TYPE (klass),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
0,
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@
|
|||
#define NM_NDISC_ROUTER_SOLICITATIONS "router-solicitations"
|
||||
#define NM_NDISC_ROUTER_SOLICITATION_INTERVAL "router-solicitation-interval"
|
||||
|
||||
#define NM_NDISC_CONFIG_RECEIVED "config-received"
|
||||
#define NM_NDISC_RA_TIMEOUT "ra-timeout"
|
||||
#define NM_NDISC_CONFIG_RECEIVED "config-received"
|
||||
#define NM_NDISC_RA_TIMEOUT_SIGNAL "ra-timeout-signal"
|
||||
|
||||
typedef enum {
|
||||
NM_NDISC_DHCP_LEVEL_UNKNOWN,
|
||||
|
|
|
|||
|
|
@ -573,7 +573,7 @@ main (int argc, char *argv[])
|
|||
G_CALLBACK (ndisc_config_changed),
|
||||
NULL);
|
||||
g_signal_connect (ndisc,
|
||||
NM_NDISC_RA_TIMEOUT,
|
||||
NM_NDISC_RA_TIMEOUT_SIGNAL,
|
||||
G_CALLBACK (ndisc_ra_timeout),
|
||||
NULL);
|
||||
nm_ndisc_start (ndisc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue