mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-23 03:04:18 +00:00
libnm-core: add missing NMConnection signal class handlers
Add class handlers for the "secrets-cleared" and "changed" signals. ("secrets-updated" already had one.)
This commit is contained in:
parent
32c26a859b
commit
4870786a2f
|
@ -2094,7 +2094,8 @@ nm_connection_class_init (NMConnectionClass *klass)
|
|||
g_signal_new (NM_CONNECTION_SECRETS_CLEARED,
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
0, NULL, NULL,
|
||||
G_STRUCT_OFFSET (NMConnectionClass, secrets_cleared),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
|
@ -2110,7 +2111,8 @@ nm_connection_class_init (NMConnectionClass *klass)
|
|||
g_signal_new (NM_CONNECTION_CHANGED,
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
0, NULL, NULL,
|
||||
G_STRUCT_OFFSET (NMConnectionClass, changed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
}
|
||||
|
|
|
@ -126,7 +126,10 @@ typedef struct {
|
|||
GObjectClass parent;
|
||||
|
||||
/* Signals */
|
||||
void (*secrets_updated) (NMConnection *connection, const char * setting);
|
||||
void (*secrets_updated) (NMConnection *connection,
|
||||
const char *setting);
|
||||
void (*secrets_cleared) (NMConnection *connection);
|
||||
void (*changed) (NMConnection *connection);
|
||||
|
||||
/*< private >*/
|
||||
gpointer padding[8];
|
||||
|
|
Loading…
Reference in a new issue