comparison libpurple/dbus-analyze-functions.py @ 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 32c366eeeb99
children 3b01cb4147d3
comparison
equal deleted inserted replaced
16793:ea82b9e581a8 16794:c5bcac0d593d
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
105 if type[0] == "char": 105 if type[0] in ["char", "gchar"]:
106 if const: 106 if const:
107 return self.inputstring(type, name) 107 return self.inputstring(type, name)
108 else: 108 else:
109 raise myexception 109 raise myexception
110 110
132 if type[0] == "const": 132 if type[0] == "const":
133 type = type[1:] 133 type = type[1:]
134 const = True 134 const = True
135 135
136 # a string 136 # a string
137 if type == ["char", pointer]: 137 if type == ["char", pointer] or type == ["gchar", pointer]:
138 return self.outputstring(type, name, const) 138 return self.outputstring(type, name, const)
139 139
140 # simple types (ints, booleans, enums, ...) 140 # simple types (ints, booleans, enums, ...)
141 if (len(type) == 1) and \ 141 if (len(type) == 1) and \
142 ((type[0] in simpletypes) or (type[0].startswith("Purple"))): 142 ((type[0] in simpletypes) or (type[0].startswith("Purple"))):