blob: 7e0852627977d822e07965dcf26527d1c9177188 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef NM_CONNECTION_H
#define NM_CONNECTION_H
#include <glib.h>
#include "nm-setting.h"
G_BEGIN_DECLS
typedef struct {
GHashTable *settings;
} NMConnection;
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);
gboolean nm_connection_have_secrets (NMConnection *connection);
GHashTable *nm_connection_to_hash (NMConnection *connection);
void nm_connection_dump (NMConnection *connection);
void nm_connection_destroy (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 */
|