comparison libpurple/dbus-analyze-signals.py @ 31112:9f6b8e5998ec

Fix dbus introspection. Fixes #13073. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author pidgin@modtwo.com
date Sat, 08 Jan 2011 15:19:00 +0000
parents 3a0552df3379
children
comparison
equal deleted inserted replaced
31111:8b710369bd50 31112:9f6b8e5998ec
30 marshal = match.group(2) 30 marshal = match.group(2)
31 if signal in excluded: 31 if signal in excluded:
32 continue 32 continue
33 33
34 signal = nameregex.sub(lambda x:x.group()[1].upper(), '-'+signal) 34 signal = nameregex.sub(lambda x:x.group()[1].upper(), '-'+signal)
35 print "\"<signal name='%s'>\\n\""%signal 35 print "\" <signal name='%s'>\\n\""%signal
36 36
37 args = marshal.split('_') 37 args = marshal.split('_')
38 # ['purple', 'marshal', <return type>, '', args...] 38 # ['purple', 'marshal', <return type>, '', args...]
39 if len(args) > 4: 39 if len(args) > 4:
40 for arg in args[4:]: 40 for arg in args[4:]:
50 type = 'x' 50 type = 'x'
51 elif arg == "UINT64": 51 elif arg == "UINT64":
52 type = 't' 52 type = 't'
53 elif arg == "BOOLEAN": 53 elif arg == "BOOLEAN":
54 type = 'b' 54 type = 'b'
55 print "\"<arg type='%s'/>\\n\""%type 55 print "\" <arg type='%s'/>\\n\""%type
56 56
57 print "\"</signal>\\n\"" 57 print "\" </signal>\\n\""
58 58
59 print ";" 59 print ";"
60 60