| libnm Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | ||||
struct NMSimpleConnection; NMSimpleConnectionClass; NMConnection * nm_simple_connection_new (void); NMConnection * nm_simple_connection_new_from_dbus (GVariant *dict,GError **error); NMConnection * nm_simple_connection_new_clone (NMConnection *connection);
NMConnection * nm_simple_connection_new (void);
Creates a new NMSimpleConnection object with no NMSetting objects. An NMSimpleConnection does not directly represent a D-Bus-exported connection, but might be used in the process of creating a new one.
Returns : |
the new empty NMConnection object. [transfer full] |
NMConnection * nm_simple_connection_new_from_dbus (GVariant *dict,GError **error);
Creates a new NMSimpleConnection from a hash table describing the
connection. See nm_connection_to_dbus() for a description of the expected
hash table.
|
a GVariant of type NM_VARIANT_TYPE_CONNECTION describing the connection |
|
on unsuccessful return, an error |
Returns : |
the new NMSimpleConnection object, populated with
settings created from the values in the hash table, or NULL if the
connection failed to validate. [transfer full]
|
NMConnection * nm_simple_connection_new_clone (NMConnection *connection);
Clones an NMConnection as an NMSimpleConnection.
|
the NMConnection to clone |
Returns : |
a new NMConnection containing the same settings and properties as the source NMConnection. [transfer full] |