]> git.cworth.org Git - apitrace/blobdiff - specs/stdapi.py
Factor the proc address wrapping into gltrace.py
[apitrace] / specs / stdapi.py
index 2e4e5d86c2b89c52a798735e7040dd439c3aa0d3..745ea259586c88641ca2c93f468608c3c0c0f16b 100644 (file)
@@ -409,6 +409,13 @@ class Interface(Type):
             yield method
         raise StopIteration
 
+    def iterBases(self):
+        iface = self
+        while iface is not None:
+            yield iface
+            iface = iface.base
+        raise StopIteration
+
     def iterBaseMethods(self):
         if self.base is not None:
             for iface, method in self.base.iterBaseMethods():
@@ -432,6 +439,7 @@ class Method(Function):
             s += ' const'
         return s
 
+
 def StdMethod(*args, **kwargs):
     kwargs.setdefault('call', '__stdcall')
     return Method(*args, **kwargs)
@@ -829,7 +837,7 @@ class API:
         self.addFunctions(api.functions)
         self.addInterfaces(api.interfaces)
 
-    def get_function_by_name(self, name):
+    def getFunctionByName(self, name):
         for function in self.functions:
             if function.name == name:
                 return function