Return the given name according to the selected calling convention
(self, name, calling_convention="cdecl")
| 512 | self.access = dict(cdecl=ctypes.CDLL(path, self.mode)) |
| 513 | |
| 514 | def get(self, name, calling_convention="cdecl"): |
| 515 | """Return the given name according to the selected calling convention""" |
| 516 | if calling_convention not in self.access: |
| 517 | raise LookupError( |
| 518 | "Unknown calling convention '{}' for function '{}'".format( |
| 519 | calling_convention, name |
| 520 | ) |
| 521 | ) |
| 522 | return getattr(self.access[calling_convention], name) |
| 523 | |
| 524 | def has(self, name, calling_convention="cdecl"): |
| 525 | """Return True if this given calling convention finds the given 'name'""" |
no outgoing calls
no test coverage detected