From 02d01b7dfdf80bad02f6c529e7bc4e4f99fce4a4 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 4 Mar 2011 12:51:16 -0600 Subject: docs: more migration guide updates --- docs/api/migrating-to-09.xml | 102 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 100 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/api/migrating-to-09.xml b/docs/api/migrating-to-09.xml index 0207d112dc..4320c27e86 100644 --- a/docs/api/migrating-to-09.xml +++ b/docs/api/migrating-to-09.xml @@ -69,7 +69,7 @@
- Settings Service Name Change + Settings Service Interface Changes With the elimination of the user settings service, the old org.freedesktop.NetworkManagerUserSettings and @@ -79,10 +79,62 @@ org.freedesktop.NetworkManager. The object path of the settings service remains unchanged. + + Additionally, the D-Bus interface of the settings service has changed + to + org.freedesktop.NetworkManager.Settings from + the old interface name of + org.freedesktop.NetworkManagerSettings, and the old + org.freedesktop.NetworkManagerSettings.System + interface has been merged into the new + + org.freedesktop.NetworkManager.Settings interface + as the split no longer made sense. This includes the + SaveHostname method and the Hostname + and CanModify properties. + Action: change the service name that your application uses to request system network settings to - org.freedesktop.NetworkManager. + org.freedesktop.NetworkManager, and update the D-Bus + interface that codes uses to talk to the settings service to + + org.freedesktop.NetworkManager.Settings. + Listen for hostname changes using the new interface name as well. + +
+ +
+ Connection Object Interface Changes + + Consistent with the interface changes to the Settings object, the + Connection object's D-Bus interface has changed to + + org.freedesktop.NetworkManager.Settings.Connection + from the previous + org.freedesktop.NetworkManagerSettings.Connection. + + + Additionally, the + org.freedesktop.NetworkManager.Settings.Connection.Updated + signal of the Connection object no longer includes the updated settings + data argument, as that might allow users who are not authorized to + view the connection details to do so. Instead, when a client receives the + Updated signal, it should requery the Connection's settings with the + org.freedesktop.NetworkManager.Settings.Connection.GetSettings + method. If the client receives an error as a result of this method call, + it should assume the connection has been deleted. + + + Action: where code manipulates + Connection objects, update the D-Bus interface that code uses to be + org.freedesktop.NetworkManager.Settings.Connection. + Additionally, code that listens for the + org.freedesktop.NetworkManager.Settings.Connection.Updated + signal should no longer expect the new settings data as an argument, but + instead should request the new settings data using the + org.freedesktop.NetworkManager.Settings.Connection.GetSettings + method.
@@ -251,6 +303,52 @@ +
+ Deprecated Methods Removed + + A few methods and signals of the org.freedesktop.NetworkManager + interface deprecated in version 0.7 have been removed. All the + replacement methods and signals have existed since version 0.7 and so are + not new to this version of NetworkManager, but some older programs may + be using removed items. The following table lists the removed items and + their replacements: + + + + Removed ItemReplacement + + + + StateChange signal + + Use the StateChanged signal, which has the + same arguments. + + + + sleep() and wake() methods + + Use the Sleep() method instead, which takes + a boolean argument indicating whether NetworkManager should + go to sleep or wake up. + + + + state() method + + Use the State property instead. + + + + +
+
+ + Action: update code to use these + replacement methods and properties where it used old deprecated ones + +
+ -- cgit v1.2.1