]> git.cworth.org Git - apitrace/blobdiff - specs/stdapi.py
Trace/retrace IDirect3DVertexBuffer9 locks
[apitrace] / specs / stdapi.py
index b0995783f8f9aea4c210fc3b96dcf5b676d3ce92..ff7508b7021257e4c57f6edd6660bd33e35ec6fc 100644 (file)
@@ -401,6 +401,12 @@ class Interface(Type):
     def visit(self, visitor, *args, **kwargs):
         return visitor.visitInterface(self, *args, **kwargs)
 
+    def getMethodByName(self, name):
+        for methods in self.methods:
+            if methods.name == name:
+                return methods
+        return None
+
     def iterMethods(self):
         if self.base is not None:
             for method in self.base.iterMethods():