From: José Fonseca Date: Wed, 14 Nov 2012 07:23:22 +0000 (+0000) Subject: Merge branch 'modules' X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=b35ae0df401ff22e3b2dc9b6bfacf1e23baebde0;hp=-c;p=apitrace Merge branch 'modules' --- b35ae0df401ff22e3b2dc9b6bfacf1e23baebde0 diff --combined wrappers/trace.py index bb0f675,79156ac..e35108b --- a/wrappers/trace.py +++ b/wrappers/trace.py @@@ -426,8 -426,9 +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 +443,10 @@@ # 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) @@@ -538,7 -541,7 +541,7 @@@ return 'true' if str(function.type) == 'HRESULT': return 'SUCCEEDED(_result)' - return 'false' + return 'true' def serializeArg(self, function, arg): print ' trace::localWriter.beginArg(%u);' % (arg.index,)