aboutsummaryrefslogtreecommitdiff
blob: 48d2112995b28eab5de0b283389b43553404d427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
From 443b7649d5a1daec09f1ed34907fa81fe0000459 Mon Sep 17 00:00:00 2001
From: Danny Kukawka <danny.kukawka@web.de>
Date: Mon, 25 Aug 2008 21:02:07 +0200
Subject: [PATCH 20/48] fix DBus introspection for org.freedesktop.Hal.Manager

Fixed DBus introspection for org.freedesktop.Hal.Manager.
Some methodes used as argument type object path (ao/oa/o) but
the code used DBUS_TYPE_STRING_AS_STRING or DBUS_TYPE_STRING.

Changed the introspection code to use string as type to prevent
API breakages, since everyone use currently what the code says.
---
 hald/hald_dbus.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/hald/hald_dbus.c b/hald/hald_dbus.c
index 51dd7ae..697fb75 100644
--- a/hald/hald_dbus.c
+++ b/hald/hald_dbus.c
@@ -4445,22 +4445,22 @@ do_introspect (DBusConnection  *connection,
 		xml = g_string_append (xml,
 				       "  <interface name=\"org.freedesktop.Hal.Manager\">\n"
 				       "    <method name=\"GetAllDevices\">\n"
-				       "      <arg name=\"devices\" direction=\"out\" type=\"ao\"/>\n"
+				       "      <arg name=\"devices\" direction=\"out\" type=\"as\"/>\n"
 				       "    </method>\n"
 				       "    <method name=\"GetAllDevicesWithProperties\">\n"
-				       "      <arg name=\"devices_with_props\" direction=\"out\" type=\"a(oa{sv})\"/>\n"
+				       "      <arg name=\"devices_with_props\" direction=\"out\" type=\"a(sa{sv})\"/>\n"
 				       "    </method>\n"
 				       "    <method name=\"DeviceExists\">\n"
 				       "      <arg name=\"does_it_exist\" direction=\"out\" type=\"b\"/>\n"
-				       "      <arg name=\"udi\" direction=\"in\" type=\"o\"/>\n"
+				       "      <arg name=\"udi\" direction=\"in\" type=\"s\"/>\n"
 				       "    </method>\n"
 				       "    <method name=\"FindDeviceStringMatch\">\n"
-				       "      <arg name=\"devices\" direction=\"out\" type=\"ao\"/>\n"
+				       "      <arg name=\"devices\" direction=\"out\" type=\"as\"/>\n"
 				       "      <arg name=\"key\" direction=\"in\" type=\"s\"/>\n"
 				       "      <arg name=\"value\" direction=\"in\" type=\"s\"/>\n"
 				       "    </method>\n"
 				       "    <method name=\"FindDeviceByCapability\">\n"
-				       "      <arg name=\"devices\" direction=\"out\" type=\"ao\"/>\n"
+				       "      <arg name=\"devices\" direction=\"out\" type=\"as\"/>\n"
 				       "      <arg name=\"capability\" direction=\"in\" type=\"s\"/>\n"
 				       "    </method>\n"
 				       "    <method name=\"NewDevice\">\n"
-- 
1.6.1.2