comparison libpurple/dbus-analyze-functions.py @ 17068: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
comparison
equal deleted inserted replaced
17067:e5bed026ccd2 17068:3b01cb4147d3
94 type = type[1:] 94 type = type[1:]
95 const = True 95 const = True
96 96
97 if len(type) == 1: 97 if len(type) == 1:
98 # simple types (int, gboolean, etc.) and enums 98 # simple types (int, gboolean, etc.) and enums
99 if (type[0] in simpletypes) or (type[0].startswith("Purple")): 99 if (type[0] in simpletypes) or ((type[0].startswith("Purple") and not type[0].endswith("Callback"))):
100 return self.inputsimple(type, name) 100 return self.inputsimple(type, name)
101 101
102 # pointers ... 102 # pointers ...
103 if (len(type) == 2) and (type[1] == pointer): 103 if (len(type) == 2) and (type[1] == pointer):
104 # strings 104 # strings
116 return self.inputpurplestructure(type, name) 116 return self.inputpurplestructure(type, name)
117 117
118 # unknown pointers are always replaced with NULL 118 # unknown pointers are always replaced with NULL
119 else: 119 else:
120 return self.inputpointer(type, name) 120 return self.inputpointer(type, name)
121 return
122 121
123 raise myexception 122 raise myexception
124 123
125 124
126 def processoutput(self, type, name): 125 def processoutput(self, type, name):