[gnome-color-manager/colord: 7/72] Remove the GetDevices DBus method, clients are expected to use colord instead



commit bc8a8731eeefc4b47925e076284d63528819daea
Author: Richard Hughes <richard hughsie com>
Date:   Sat Jan 15 22:18:14 2011 +0000

    Remove the GetDevices DBus method, clients are expected to use colord instead

 src/gcm-session.c              |   18 ------------------
 src/org.gnome.ColorManager.xml |   21 ---------------------
 2 files changed, 0 insertions(+), 39 deletions(-)
---
diff --git a/src/gcm-session.c b/src/gcm-session.c
index 6dda727..f5f4691 100644
--- a/src/gcm-session.c
+++ b/src/gcm-session.c
@@ -432,24 +432,6 @@ gcm_session_handle_method_call (GDBusConnection *connection_, const gchar *sende
 	GcmDeviceKind device_kind;
 	guint i;
 
-	/* return 'as' */
-	if (g_strcmp0 (method_name, "GetDevices") == 0) {
-
-		/* copy the device id */
-		array = gcm_client_get_devices (client);
-		devices = g_new0 (gchar *, array->len + 1);
-		for (i=0; i<array->len; i++) {
-			device = g_ptr_array_index (array, i);
-			devices[i] = g_strdup (gcm_device_get_id (device));
-		}
-
-		/* format the value */
-		value = g_variant_new_strv ((const gchar * const *) devices, -1);
-		tuple = g_variant_new_tuple (&value, 1);
-		g_dbus_method_invocation_return_value (invocation, tuple);
-		goto out;
-	}
-
 	/* return 's' */
 	if (g_strcmp0 (method_name, "GetProfileForWindow") == 0) {
 		g_variant_get (parameters, "(u)", &xid);
diff --git a/src/org.gnome.ColorManager.xml b/src/org.gnome.ColorManager.xml
index ce5122b..2271112 100644
--- a/src/org.gnome.ColorManager.xml
+++ b/src/org.gnome.ColorManager.xml
@@ -231,27 +231,6 @@
       </arg>
     </method>
 
-    <!--*****************************************************************************************-->
-    <method name='GetDevices'>
-      <annotation name='org.freedesktop.DBus.GLib.Async' value=''/>
-      <doc:doc>
-        <doc:description>
-          <doc:para>
-            Gets a list of all the devices which have assigned color profiles.
-          </doc:para>
-        </doc:description>
-      </doc:doc>
-      <arg type='as' name='devices' direction='out'>
-        <doc:doc>
-          <doc:summary>
-            <doc:para>
-              An array of device IDs, e.g. <doc:tt>['xrandr_ibm_france_ltn154p2_l05']</doc:tt>.
-            </doc:para>
-          </doc:summary>
-        </doc:doc>
-      </arg>
-    </method>
-
     <!-- ************************************************************ -->
     <signal name='Changed'>
       <doc:doc>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]