diff options
author | Armin Rigo <arigo@tunes.org> | 2020-01-05 13:46:20 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2020-01-05 13:46:20 +0100 |
commit | 263cff26c5edcb9e77990078faec25431303c107 (patch) | |
tree | a38e038b27165ef09c7298912ddf758d0374b3c8 /c/cdlopen.c | |
parent | 0e3aa45f0edb076fe282461509d8a19effd3d8f5 (diff) | |
download | cffi-263cff26c5edcb9e77990078faec25431303c107.tar.gz |
Issue #437
Support ffi.dlopen(<void* cdata>). See updated documentation.
Diffstat (limited to 'c/cdlopen.c')
-rw-r--r-- | c/cdlopen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c/cdlopen.c b/c/cdlopen.c index ad33bbd..0ed319b 100644 --- a/c/cdlopen.c +++ b/c/cdlopen.c @@ -43,12 +43,13 @@ static PyObject *ffi_dlopen(PyObject *self, PyObject *args) const char *modname; PyObject *temp, *result = NULL; void *handle; + int auto_close; - handle = b_do_dlopen(args, &modname, &temp); + handle = b_do_dlopen(args, &modname, &temp, &auto_close); if (handle != NULL) { result = (PyObject *)lib_internal_new((FFIObject *)self, - modname, handle); + modname, handle, auto_close); } Py_XDECREF(temp); return result; |