diff libpurple/dbus-analyze-functions.py @ 17081:3b01cb4147d3

Callbacks are not supported for dbus.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 13 May 2007 08:34:26 +0000
parents c5bcac0d593d
children 98ef77c2455f
line wrap: on
line diff
--- a/libpurple/dbus-analyze-functions.py	Sun May 13 07:30:53 2007 +0000
+++ b/libpurple/dbus-analyze-functions.py	Sun May 13 08:34:26 2007 +0000
@@ -96,7 +96,7 @@
 
         if len(type) == 1:
             # simple types (int, gboolean, etc.) and enums
-            if (type[0] in simpletypes) or (type[0].startswith("Purple")):
+            if (type[0] in simpletypes) or ((type[0].startswith("Purple") and not type[0].endswith("Callback"))):
                 return self.inputsimple(type, name)
 
         # pointers ... 
@@ -118,7 +118,6 @@
             # unknown pointers are always replaced with NULL
             else:
                 return self.inputpointer(type, name)
-                return
 
         raise myexception