mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 12:10:15 +01:00
* libnm-util/nm-connection.c libnm-util/nm-connection.h - (nm_connection_clear_secrets): new function; clear secrets out of each NMSetting in an NMConnection * libnm-util/nm-setting.h libnm-util/nm-setting.c - (nm_setting_clear_secrets, default_setting_clear_secrets): clear secrets out of an NMSetting - (nm_setting_connection_new, nm_setting_ip4_config_new, nm_setting_wired_new, nm_setting_wireless_new, nm_setting_wireless_security_new, nm_setting_ppp_new, nm_setting_vpn_new, nm_setting_vpn_properties_new): set clear_secrets to default handler default_setting_clear_secrets() git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2871 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
64 lines
2.3 KiB
C
64 lines
2.3 KiB
C
#ifndef NM_CONNECTION_H
|
|
#define NM_CONNECTION_H
|
|
|
|
#include <glib.h>
|
|
#include <glib-object.h>
|
|
#include "nm-setting.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define NM_TYPE_CONNECTION (nm_connection_get_type ())
|
|
#define NM_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_CONNECTION, NMConnection))
|
|
#define NM_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_CONNECTION, NMConnectionClass))
|
|
#define NM_IS_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_CONNECTION))
|
|
#define NM_IS_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_CONNECTION))
|
|
#define NM_CONNECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_CONNECTION, NMConnectionClass))
|
|
|
|
typedef struct {
|
|
GObject parent;
|
|
} NMConnection;
|
|
|
|
typedef struct {
|
|
GObjectClass parent;
|
|
|
|
/* Signals */
|
|
void (*secrets_updated) (NMConnection *connection, const char * setting);
|
|
} NMConnectionClass;
|
|
|
|
GType nm_connection_get_type (void);
|
|
|
|
NMConnection *nm_connection_new (void);
|
|
NMConnection *nm_connection_new_from_hash (GHashTable *hash);
|
|
void nm_connection_add_setting (NMConnection *connection,
|
|
NMSetting *setting);
|
|
|
|
NMSetting *nm_connection_get_setting (NMConnection *connection,
|
|
const char *setting_name);
|
|
|
|
gboolean nm_connection_compare (NMConnection *connection,
|
|
NMConnection *other);
|
|
|
|
const char * nm_connection_need_secrets (NMConnection *connection);
|
|
|
|
void nm_connection_clear_secrets (NMConnection *connection);
|
|
|
|
void nm_connection_update_secrets (NMConnection *connection,
|
|
const char *setting_name,
|
|
GHashTable *secrets);
|
|
|
|
void nm_connection_for_each_setting_value (NMConnection *connection,
|
|
NMSettingValueIterFn func,
|
|
gpointer user_data);
|
|
|
|
GHashTable *nm_connection_to_hash (NMConnection *connection);
|
|
void nm_connection_dump (NMConnection *connection);
|
|
|
|
|
|
void nm_setting_parser_register (const char *name,
|
|
NMSettingCreateFn creator);
|
|
|
|
void nm_setting_parser_unregister (const char *name);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* NM_CONNECTION_H */
|