]> git.cworth.org Git - apitrace/blobdiff - wrappers/trace.py
Merge branch 'modules'
[apitrace] / wrappers / trace.py
index bb0f675a547231f3e94d7370d31f3c6fe33cf3c6..e35108b273920561b0c87a950dbd2a41606d2086 100644 (file)
@@ -426,8 +426,9 @@ class Tracer:
         self.header(api)
 
         # Includes
-        for header in api.headers:
-            print header
+        for module in api.modules:
+            for header in module.headers:
+                print header
         print
 
         # Generate the serializer functions
@@ -442,8 +443,10 @@ class Tracer:
         # Function wrappers
         self.interface = None
         self.base = None
-        map(self.traceFunctionDecl, api.functions)
-        map(self.traceFunctionImpl, api.functions)
+        for function in api.getAllFunctions():
+            self.traceFunctionDecl(function)
+        for function in api.getAllFunctions():
+            self.traceFunctionImpl(function)
         print
 
         self.footer(api)