libpurple/dbus-analyze-functions.py

changeset 17113
bdedaa55b16b
parent 16839
94674eff937a
child 17457
1e19ef46b296
child 18068
b6554e3c8224
equal deleted inserted replaced
17112:16778fac2a09 17113:bdedaa55b16b
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):

mercurial