X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=wrappers%2Fdwritetrace.py;h=2b42e43eed12053cd89d9d14e51a8e8b14b70a0e;hb=e7d7a643767ab46fdc15b4d7f430c38064f8e9ce;hp=cbb214822b2a6af9c4415c7eb23b807cae297abf;hpb=81301939f025407ceb284a9dcd5d5a1f05d27b8f;p=apitrace diff --git a/wrappers/dwritetrace.py b/wrappers/dwritetrace.py index cbb2148..2b42e43 100644 --- a/wrappers/dwritetrace.py +++ b/wrappers/dwritetrace.py @@ -29,20 +29,6 @@ from specs.dwrite import dwrite from specs.d2d1 import d2d1 # cyclic dependency -class DWriteTracer(DllTracer): - - def wrapArg(self, function, arg): - if function.name == 'DWriteCreateFactory' and arg.output: - print ' if (*%s) {' % arg.name - for iface in dwrite.interfaces: - print ' if (iid == IID_%s) {' % iface.name - print ' *%s = new Wrap%s(static_cast<%s *>(*%s));' % (arg.name, iface.name, iface.name, arg.name) - print ' }' - print ' }' - else: - DllTracer.wrapArg(self, function, arg) - - if __name__ == '__main__': print '#define INITGUID' print @@ -54,5 +40,5 @@ if __name__ == '__main__': print '#include "d2dimports.hpp"' print - tracer = DWriteTracer('dwrite.dll') + tracer = DllTracer('dwrite.dll') tracer.traceModule(dwrite)