diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-17 22:01:57 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-17 22:01:57 +0800 |
commit | c06c6fc339db453d2d20adf389e5902e0900df5e (patch) | |
tree | 59add529a6b1a145faae542e2ed093c5493fb08d /tools | |
parent | b8430db01b7e258303722a2173bd95112e0fce18 (diff) | |
download | gsoc2013-empathy-c06c6fc339db453d2d20adf389e5902e0900df5e.tar gsoc2013-empathy-c06c6fc339db453d2d20adf389e5902e0900df5e.tar.gz gsoc2013-empathy-c06c6fc339db453d2d20adf389e5902e0900df5e.tar.bz2 gsoc2013-empathy-c06c6fc339db453d2d20adf389e5902e0900df5e.tar.lz gsoc2013-empathy-c06c6fc339db453d2d20adf389e5902e0900df5e.tar.xz gsoc2013-empathy-c06c6fc339db453d2d20adf389e5902e0900df5e.tar.zst gsoc2013-empathy-c06c6fc339db453d2d20adf389e5902e0900df5e.zip |
glib-signals-marshal-gen.py is not needed any moreEMPATHY_3_5_92
Diffstat (limited to 'tools')
-rw-r--r-- | tools/glib-signals-marshal-gen.py | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/tools/glib-signals-marshal-gen.py b/tools/glib-signals-marshal-gen.py deleted file mode 100644 index 0d02c1341..000000000 --- a/tools/glib-signals-marshal-gen.py +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/python - -import sys -import xml.dom.minidom -from string import ascii_letters, digits - - -from libglibcodegen import signal_to_marshal_name, method_to_glue_marshal_name - - -class Generator(object): - - def __init__(self, dom): - self.dom = dom - self.marshallers = {} - - def do_method(self, method): - marshaller = method_to_glue_marshal_name(method, 'PREFIX') - - assert '__' in marshaller - rhs = marshaller.split('__', 1)[1].split('_') - - self.marshallers[marshaller] = rhs - - def do_signal(self, signal): - marshaller = signal_to_marshal_name(signal, 'PREFIX') - - assert '__' in marshaller - rhs = marshaller.split('__', 1)[1].split('_') - - self.marshallers[marshaller] = rhs - - def __call__(self): - methods = self.dom.getElementsByTagName('method') - - for method in methods: - self.do_method(method) - - signals = self.dom.getElementsByTagName('signal') - - for signal in signals: - self.do_signal(signal) - - all = self.marshallers.keys() - all.sort() - for marshaller in all: - rhs = self.marshallers[marshaller] - if not marshaller.startswith('g_cclosure'): - print 'VOID:' + ','.join(rhs) - -if __name__ == '__main__': - argv = sys.argv[1:] - dom = xml.dom.minidom.parse(argv[0]) - - Generator(dom)() |