![]() |
![]() |
![]() |
libnm-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define NM_SETTINGS_CONNECTION_INTERFACE_UPDATED #define NM_SETTINGS_CONNECTION_INTERFACE_REMOVED NMSettingsConnectionInterface; void (*NMSettingsConnectionInterfaceUpdateFunc) (NMSettingsConnectionInterface *connection
,GError *error
,gpointer user_data
); void (*NMSettingsConnectionInterfaceDeleteFunc) (NMSettingsConnectionInterface *connection
,GError *error
,gpointer user_data
); void (*NMSettingsConnectionInterfaceGetSecretsFunc) (NMSettingsConnectionInterface *connection
,GHashTable *secrets
,GError *error
,gpointer user_data
); gboolean nm_settings_connection_interface_update (NMSettingsConnectionInterface *connection
,NMSettingsConnectionInterfaceUpdateFunc callback
,gpointer user_data
); gboolean nm_settings_connection_interface_delete (NMSettingsConnectionInterface *connection
,NMSettingsConnectionInterfaceDeleteFunc callback
,gpointer user_data
); gboolean nm_settings_connection_interface_get_secrets (NMSettingsConnectionInterface *connection
,const char *setting_name
,const char **hints
,gboolean request_new
,NMSettingsConnectionInterfaceGetSecretsFunc callback
,gpointer user_data
); void nm_settings_connection_interface_emit_updated (NMSettingsConnectionInterface *connection
);
typedef struct { GTypeInterface g_iface; /* Methods */ gboolean (*update) (NMSettingsConnectionInterface *connection, NMSettingsConnectionInterfaceUpdateFunc callback, gpointer user_data); gboolean (*delete) (NMSettingsConnectionInterface *connection, NMSettingsConnectionInterfaceDeleteFunc callback, gpointer user_data); gboolean (*get_secrets) (NMSettingsConnectionInterface *connection, const char *setting_name, const char **hints, gboolean request_new, NMSettingsConnectionInterfaceGetSecretsFunc callback, gpointer user_data); void (*emit_updated) (NMSettingsConnectionInterface *connection); /* Signals */ /* 'new_settings' hash should *not* contain secrets */ void (*updated) (NMSettingsConnectionInterface *connection, GHashTable *new_settings); void (*removed) (NMSettingsConnectionInterface *connection); /* Padding for future expansion */ void (*_reserved1) (void); void (*_reserved2) (void); void (*_reserved3) (void); void (*_reserved4) (void); void (*_reserved5) (void); void (*_reserved6) (void); } NMSettingsConnectionInterface;
void (*NMSettingsConnectionInterfaceUpdateFunc) (NMSettingsConnectionInterface *connection
,GError *error
,gpointer user_data
);
|
|
|
|
|
void (*NMSettingsConnectionInterfaceDeleteFunc) (NMSettingsConnectionInterface *connection
,GError *error
,gpointer user_data
);
|
|
|
|
|
void (*NMSettingsConnectionInterfaceGetSecretsFunc) (NMSettingsConnectionInterface *connection
,GHashTable *secrets
,GError *error
,gpointer user_data
);
|
|
|
|
|
|
|
gboolean nm_settings_connection_interface_update (NMSettingsConnectionInterface *connection
,NMSettingsConnectionInterfaceUpdateFunc callback
,gpointer user_data
);
Update the connection with current settings and properties.
|
an object implementing NMSettingsConnectionInterface |
|
a function to be called when the update completes |
|
caller-specific data to be passed to callback
|
Returns : |
TRUE on success, FALSE on failure |
gboolean nm_settings_connection_interface_delete (NMSettingsConnectionInterface *connection
,NMSettingsConnectionInterfaceDeleteFunc callback
,gpointer user_data
);
Delete the connection.
|
a objecting implementing NMSettingsConnectionInterface |
|
a function to be called when the delete completes |
|
caller-specific data to be passed to callback
|
Returns : |
TRUE on success, FALSE on failure |
gboolean nm_settings_connection_interface_get_secrets (NMSettingsConnectionInterface *connection
,const char *setting_name
,const char **hints
,gboolean request_new
,NMSettingsConnectionInterfaceGetSecretsFunc callback
,gpointer user_data
);
Request the connection's secrets.
|
a object implementing NMSettingsConnectionInterface |
|
the NMSetting object name to get secrets for |
|
NMSetting key names to get secrets for (optional) |
|
hint that new secrets (instead of cached or stored secrets) should be returned |
|
a function to be called when the update completes |
|
caller-specific data to be passed to callback
|
Returns : |
TRUE on success, FALSE on failure |
void nm_settings_connection_interface_emit_updated
(NMSettingsConnectionInterface *connection
);
|