Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 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)
Exemple #5
0
 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)