]> git.cworth.org Git - apitrace/blobdiff - wrappers/d2d1trace.py
d2d: Eliminate custom tracers.
[apitrace] / wrappers / d2d1trace.py
index a6142852d094881a9a37ee51f3276a7fb3cdc599..8883bd578b82f5821de1dec547168cc8fe9dd9f4 100644 (file)
@@ -28,20 +28,6 @@ from dlltrace import DllTracer
 from specs.d2d1 import d2d1
 
 
-class D2D1Tracer(DllTracer):
-
-    def wrapArg(self, function, arg):
-        if function.name == 'D2D1CreateFactory' and arg.output:
-            print '    if (*%s) {' % arg.name
-            for iface in d2d1.interfaces:
-                print '        if (riid == IID_%s) {' % iface.name
-                print '            *%s = (LPVOID) new Wrap%s((%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
@@ -51,5 +37,5 @@ if __name__ == '__main__':
     print '#include "d2dimports.hpp"'
     print
 
-    tracer = D2D1Tracer('d2d1.dll')
-    tracer.traceApi(d2d1)
+    tracer = DllTracer('d2d1.dll')
+    tracer.traceModule(d2d1)