summaryrefslogtreecommitdiff
path: root/c/cdlopen.c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2020-01-05 13:46:20 +0100
committerArmin Rigo <arigo@tunes.org>2020-01-05 13:46:20 +0100
commit263cff26c5edcb9e77990078faec25431303c107 (patch)
treea38e038b27165ef09c7298912ddf758d0374b3c8 /c/cdlopen.c
parent0e3aa45f0edb076fe282461509d8a19effd3d8f5 (diff)
downloadcffi-263cff26c5edcb9e77990078faec25431303c107.tar.gz
Issue #437
Support ffi.dlopen(<void* cdata>). See updated documentation.
Diffstat (limited to 'c/cdlopen.c')
-rw-r--r--c/cdlopen.c5
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;