]> git.cworth.org Git - apitrace/blobdiff - wrappers/trace.py
specs: Allow an API to spread across multiple modules.
[apitrace] / wrappers / trace.py
index cbdc0c07122e2a9ee4390263f83746a68decb107..79156acafbd328086f6ea021c41bf5c64a8ce2d7 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)