diff options
author | Matthias Benkard <code@mail.matthias.benkard.de> | 2007-09-15 16:57:05 +0200 |
---|---|---|
committer | Matthias Benkard <code@mail.matthias.benkard.de> | 2007-09-15 16:57:05 +0200 |
commit | 7ea325733688c78da09d5e0e276803a9f6b3e63d (patch) | |
tree | 2fc1e549dad06e71a234c27465d3ce2cf60536d2 /Objective-C/libffi_support.h | |
parent | 585f55e70e44cccb0807c2bc2d1f0904c8fbc5e1 (diff) |
Make the libffi support code from PyObjC compilable stand-alone.
darcs-hash:f691f757ec2c57915f7b653118183759d8ac590a
Diffstat (limited to 'Objective-C/libffi_support.h')
-rw-r--r-- | Objective-C/libffi_support.h | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/Objective-C/libffi_support.h b/Objective-C/libffi_support.h index d9a7f40..cdf71c0 100644 --- a/Objective-C/libffi_support.h +++ b/Objective-C/libffi_support.h @@ -3,34 +3,10 @@ #include "ffi.h" -typedef void (*PyObjCFFI_ClosureFunc)(ffi_cif*, void*, void**, void*); +ffi_type* +objcl_pyobjc_signature_to_ffi_return_type (const char* argtype); -void PyObjCFFI_FreeCIF(ffi_cif* cif); -ffi_cif* PyObjCFFI_CIFForSignature(PyObjCMethodSignature* signature); -IMP PyObjCFFI_MakeClosure(PyObjCMethodSignature* signature, - PyObjCFFI_ClosureFunc func, void* userdata); -void* PyObjCFFI_FreeClosure(IMP closure); - -IMP PyObjCFFI_MakeIMPForSignature(char* signature, PyObject* callable); -IMP PyObjCFFI_MakeIMPForPyObjCSelector(PyObjCSelector *aSelector); -PyObject *PyObjCFFI_Caller(PyObject *aMeth, PyObject* self, PyObject *args); - -int PyObjCFFI_CountArguments( - PyObjCMethodSignature* methinfo, Py_ssize_t argOffset, - Py_ssize_t* byref_in_count, - Py_ssize_t* byref_out_count, - Py_ssize_t* plain_count, - Py_ssize_t* argbuf_len); - -int PyObjCFFI_ParseArguments( - PyObjCMethodSignature* methinfo, Py_ssize_t argOffset, - PyObject* args, Py_ssize_t argbuf_cur, unsigned char* argbuf, - void** byref, - ffi_type** arglist, void** values); - -PyObject* PyObjCFFI_BuildResult( - PyObjCMethodSignature* methinfo, Py_ssize_t argOffset, - void* pRetval, void** byref, Py_ssize_t byref_out_count, - PyObject* self, int flags); +ffi_type* +objcl_pyobjc_arg_signature_to_ffi_type (const char* argtype); #endif /* PyObjC_FFI_SUPPORT_H */ |