summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2013-10-17 13:04:37 -0500
committerDan Williams <dcbw@redhat.com>2013-10-17 13:04:37 -0500
commitde45e49eb821efafda7413660ba1b6ef9e770da8 (patch)
tree29268fd3551000ea9ef2ee097de0d3d1478bf6a6
parent1fe5c197d2990d4b0a1c1de844705a4b1145868e (diff)
downloadNetworkManager-de45e49eb821efafda7413660ba1b6ef9e770da8.tar.gz
settings: document nm_settings_add_connection()
-rw-r--r--src/settings/nm-settings.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/settings/nm-settings.c b/src/settings/nm-settings.c
index 5e954de1dc..4a5808000e 100644
--- a/src/settings/nm-settings.c
+++ b/src/settings/nm-settings.c
@@ -879,6 +879,20 @@ remove_default_wired_connection (NMSettings *self,
}
}
+/**
+ * nm_settings_add_connection:
+ * @self: the #NMSettings object
+ * @connection: the source connection to create a new #NMSettingsConnection from
+ * @save_to_disk: %TRUE to save the connection to disk immediately, %FALSE to
+ * not save to disk
+ * @error: on return, a location to store any errors that may occur
+ *
+ * Creates a new #NMSettingsConnection for the given source @connection.
+ * The returned object is owned by @self and the caller must reference
+ * the object to continue using it.
+ *
+ * Returns: the new #NMSettingsConnection or %NULL
+ */
NMSettingsConnection *
nm_settings_add_connection (NMSettings *self,
NMConnection *connection,