changeset 16794:c5bcac0d593d

gchar returning functions should also be exposed for dbus.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 02 May 2007 16:14:09 +0000
parents ea82b9e581a8
children db06d4a18246
files libpurple/dbus-analyze-functions.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/dbus-analyze-functions.py	Wed May 02 15:47:39 2007 +0000
+++ b/libpurple/dbus-analyze-functions.py	Wed May 02 16:14:09 2007 +0000
@@ -102,7 +102,7 @@
         # pointers ... 
         if (len(type) == 2) and (type[1] == pointer):
             # strings
-            if type[0] == "char":
+            if type[0] in ["char", "gchar"]:
                 if const:
                     return self.inputstring(type, name)
                 else:
@@ -134,7 +134,7 @@
             const = True
 
         # a string
-        if type == ["char", pointer]:
+        if type == ["char", pointer] or type == ["gchar", pointer]:
             return self.outputstring(type, name, const)
 
         # simple types (ints, booleans, enums, ...)