Say I need to use a few functions from a shared library, e. g. libfoo.so, from python code. I figured the cffi module could help me, especially as it seems to support opaque types if one uses the verify()
function.
I did not fully understand though, what the documentation means by
verify() [...] is an alternative: instead of doing a dlopen, it generates and compiles a piece of C code.
Do I have to recompile the entire libfoo.so? Or just a certain part (relevant parts of the header)? If the latter is the case, is this significantly less of a hassle in terms of dependencies, configuration options, ... ?