Define argument / return types for the specified C function

def prototype(self, name, argtypes, restype=None):
        """Define argument / return types for the specified C function"""
        function = self.function(name)
        function.argtypes = argtypes
        if restype:
            function.restype = restype