mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 16:00:07 +01:00
* system-settings/plugins/keyfile/nm-keyfile-connection.[ch]: Implement. * system-settings/plugins/keyfile/plugin.c: Work with NMKeyfileConnections. * system-settings/src/dbus-settings.c: Remove NMSysconfigExportedConnection. Plugins are supposed to return NMExportedConnections now and handle the updated(), removed(), and GetSecrets(). Store the internal list of connections in hash table to make it easier to find duplicates. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3640 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
35 lines
1.3 KiB
C
35 lines
1.3 KiB
C
/* -*- Mode: C; tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */
|
|
|
|
#ifndef NM_KEYFILE_CONNECTION_H
|
|
#define NM_KEYFILE_CONNECTION_H
|
|
|
|
#include <nm-settings.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define NM_TYPE_KEYFILE_CONNECTION (nm_keyfile_connection_get_type ())
|
|
#define NM_KEYFILE_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_KEYFILE_CONNECTION, NMKeyfileConnection))
|
|
#define NM_KEYFILE_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_KEYFILE_CONNECTION, NMKeyfileConnectionClass))
|
|
#define NM_IS_KEYFILE_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_KEYFILE_CONNECTION))
|
|
#define NM_IS_KEYFILE_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_KEYFILE_CONNECTION))
|
|
#define NM_KEYFILE_CONNECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_KEYFILE_CONNECTION, NMKeyfileConnectionClass))
|
|
|
|
#define NM_KEYFILE_CONNECTION_FILENAME "filename"
|
|
|
|
typedef struct {
|
|
NMExportedConnection parent;
|
|
} NMKeyfileConnection;
|
|
|
|
typedef struct {
|
|
NMExportedConnectionClass parent;
|
|
} NMKeyfileConnectionClass;
|
|
|
|
GType nm_keyfile_connection_get_type (void);
|
|
|
|
NMKeyfileConnection *nm_keyfile_connection_new (const char *filename);
|
|
|
|
const char *nm_keyfile_connection_get_filename (NMKeyfileConnection *self);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* NM_KEYFILE_CONNECTION_H */
|