libnm: merge saved and unsaved connection methods
Merge nm_remote_settings_add_connection() and nm_remote_settings_add_connection_unsaved(), and likewise nm_remote_connection_commit_changes() and nm_remote_connection_commit_changes_unsaved(), by adding a boolean flag to each saying whether to save to disk.
This commit is contained in:
@@ -89,7 +89,7 @@ add_connection (NMRemoteSettings *settings, GMainLoop *loop, const char *con_nam
|
||||
/* Ask the settings service to add the new connection; we'll quit the
|
||||
* mainloop and exit when the callback is called.
|
||||
*/
|
||||
success = nm_remote_settings_add_connection (settings, connection, added_cb, loop);
|
||||
success = nm_remote_settings_add_connection (settings, connection, TRUE, added_cb, loop);
|
||||
if (!success)
|
||||
g_print ("Error adding connection\n");
|
||||
|
||||
|
Reference in New Issue
Block a user