diff options
author | Dan Winship <danw@gnome.org> | 2013-10-31 15:17:33 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2013-11-15 13:30:13 -0500 |
commit | 51c6269d46b8b7eee9d7eae322fb6bfe6db913dd (patch) | |
tree | b49853a6b9f0127511f5081de2b6d7cf1235a7ad /introspection | |
parent | 65737d9e482d87f6f87f1fe49d484580d2e89a3f (diff) | |
download | NetworkManager-51c6269d46b8b7eee9d7eae322fb6bfe6db913dd.tar.gz |
core: add o.fd.NM.Settings.LoadConnections
Add a D-Bus method to reload connection files specified by
filename, and implement it in the ifcfg-rh and keyfile backends.
https://bugzilla.gnome.org/show_bug.cgi?id=709830
Diffstat (limited to 'introspection')
-rw-r--r-- | introspection/nm-settings.xml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/introspection/nm-settings.xml b/introspection/nm-settings.xml index 0043ec7564..7e02db7216 100644 --- a/introspection/nm-settings.xml +++ b/introspection/nm-settings.xml @@ -82,6 +82,40 @@ </arg> </method> + <method name="LoadConnections"> + <tp:docstring> + Loads or reloads the indicated connections from disk. You + should call this after making changes directly to an on-disk + connection file to make sure that NetworkManager sees the + changes. (If "monitor-connection-files" in NetworkManager.conf + is "true", then this will have no real effect, but is + harmless.) As with AddConnection(), this operation does not + necessarily start the network connection. + </tp:docstring> + <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_settings_load_connections"/> + <annotation name="org.freedesktop.DBus.GLib.Async" value=""/> + <arg name="filenames" type="as" direction="in"> + <tp:docstring> + Array of paths to on-disk connection profiles in directories + monitored by NetworkManager. + </tp:docstring> + </arg> + <arg name="status" type="b" direction="out"> + <tp:docstring> + Success or failure of the operation as a whole. True if + NetworkManager at least tried to load the indicated + connections, even if it did not succeed. False if an error + occurred before trying to load the connections (eg, + permission denied). + </tp:docstring> + </arg> + <arg name="failures" type="as" direction="out"> + <tp:docstring> + Paths of connection files that could not be loaded. + </tp:docstring> + </arg> + </method> + <method name="ReloadConnections"> <tp:docstring> Tells NetworkManager to reload all connection files from disk, |