mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 10:40:30 +01:00
settings: drop signal slots from NMSettings
NMSettings has no derived classes and obviously nobody is using
those slots. Just drop them.
(cherry picked from commit d571933505)
This commit is contained in:
parent
480e69cc82
commit
8b357f43c6
4 changed files with 8 additions and 37 deletions
|
|
@ -106,24 +106,21 @@ nm_connection_provider_default_init (NMConnectionProviderInterface *g_iface)
|
|||
g_signal_new (NM_CP_SIGNAL_CONNECTION_ADDED,
|
||||
iface_type,
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (NMConnectionProviderInterface, connection_added),
|
||||
NULL, NULL,
|
||||
0, NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE, 1, G_TYPE_OBJECT);
|
||||
|
||||
g_signal_new (NM_CP_SIGNAL_CONNECTION_UPDATED,
|
||||
iface_type,
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (NMConnectionProviderInterface, connection_updated),
|
||||
NULL, NULL,
|
||||
0, NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE, 1, G_TYPE_OBJECT);
|
||||
|
||||
g_signal_new (NM_CP_SIGNAL_CONNECTION_REMOVED,
|
||||
iface_type,
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (NMConnectionProviderInterface, connection_removed),
|
||||
NULL, NULL,
|
||||
0, NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE, 1, G_TYPE_OBJECT);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,14 +63,6 @@ typedef struct {
|
|||
|
||||
NMConnection * (*get_connection_by_uuid) (NMConnectionProvider *self,
|
||||
const char *uuid);
|
||||
|
||||
/* Signals */
|
||||
void (*connection_added) (NMConnectionProvider *self, NMConnection *connection);
|
||||
|
||||
void (*connection_updated) (NMConnectionProvider *self, NMConnection *connection);
|
||||
|
||||
void (*connection_removed) (NMConnectionProvider *self, NMConnection *connection);
|
||||
|
||||
} NMConnectionProviderInterface;
|
||||
|
||||
GType nm_connection_provider_get_type (void);
|
||||
|
|
|
|||
|
|
@ -2480,8 +2480,7 @@ nm_settings_class_init (NMSettingsClass *class)
|
|||
g_signal_new (NM_SETTINGS_SIGNAL_CONNECTION_ADDED,
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (NMSettingsClass, connection_added),
|
||||
NULL, NULL,
|
||||
0, NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE, 1, NM_TYPE_SETTINGS_CONNECTION);
|
||||
|
||||
|
|
@ -2489,8 +2488,7 @@ nm_settings_class_init (NMSettingsClass *class)
|
|||
g_signal_new (NM_SETTINGS_SIGNAL_CONNECTION_UPDATED,
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (NMSettingsClass, connection_updated),
|
||||
NULL, NULL,
|
||||
0, NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE, 1, NM_TYPE_SETTINGS_CONNECTION);
|
||||
|
||||
|
|
@ -2507,8 +2505,7 @@ nm_settings_class_init (NMSettingsClass *class)
|
|||
g_signal_new (NM_SETTINGS_SIGNAL_CONNECTION_REMOVED,
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (NMSettingsClass, connection_removed),
|
||||
NULL, NULL,
|
||||
0, NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE, 1, NM_TYPE_SETTINGS_CONNECTION);
|
||||
|
||||
|
|
@ -2516,8 +2513,7 @@ nm_settings_class_init (NMSettingsClass *class)
|
|||
g_signal_new (NM_SETTINGS_SIGNAL_CONNECTION_VISIBILITY_CHANGED,
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (NMSettingsClass, connection_visibility_changed),
|
||||
NULL, NULL,
|
||||
0, NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE, 1, NM_TYPE_SETTINGS_CONNECTION);
|
||||
|
||||
|
|
@ -2525,8 +2521,7 @@ nm_settings_class_init (NMSettingsClass *class)
|
|||
g_signal_new (NM_SETTINGS_SIGNAL_AGENT_REGISTERED,
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (NMSettingsClass, agent_registered),
|
||||
NULL, NULL,
|
||||
0, NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE, 1, NM_TYPE_SECRET_AGENT);
|
||||
|
||||
|
|
|
|||
|
|
@ -56,19 +56,6 @@ struct _NMSettings {
|
|||
|
||||
typedef struct {
|
||||
NMExportedObjectClass parent_class;
|
||||
|
||||
/* Signals */
|
||||
void (*properties_changed) (NMSettings *self, GHashTable *properties);
|
||||
|
||||
void (*connection_added) (NMSettings *self, NMSettingsConnection *connection);
|
||||
|
||||
void (*connection_updated) (NMSettings *self, NMSettingsConnection *connection);
|
||||
|
||||
void (*connection_removed) (NMSettings *self, NMSettingsConnection *connection);
|
||||
|
||||
void (*connection_visibility_changed) (NMSettings *self, NMSettingsConnection *connection);
|
||||
|
||||
void (*agent_registered) (NMSettings *self, NMSecretAgent *agent);
|
||||
} NMSettingsClass;
|
||||
|
||||
typedef void (*NMSettingsSetHostnameCb) (const char *name, gboolean result, gpointer user_data);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue