def getrawpointer_byordinal(self, ordinal, argtypes, restype, flags=FUNCFLAG_CDECL): # these arguments are already casted to proper ffi # structures! return RawFuncPtr(name, argtypes, restype, dlsym_byordinal(self.lib, ordinal), flags=flags, keepalive=self)
def getpointer_by_ordinal(self, name, argtypes, restype, flags=FUNCFLAG_STDCALL): return Func(name, argtypes, restype, dlsym_byordinal(self.lib, name), flags=flags, keepalive=self)
def getpointer_by_ordinal(self, name, argtypes, restype, flags=FUNCFLAG_CDECL, variadic_args=0): return Func('by_ordinal', argtypes, restype, dlsym_byordinal(self.lib, name), flags=flags, keepalive=self, variadic_args=variadic_args)