Re: Library Import

eryk sun <[email protected]> Mon, 21 Dec 2015 12:52:10 -0600
Newsgroups gmane.comp.python.ctypes
Message-ID <CACL+1avuYrzj9+oC79-dAU_r7u5D6g8ufBukYPL2VbjtjunQkg@mail.gmail.com>
On Mon, Dec 21, 2015 at 6:48 AM, Andrew Robert Whalley <[email protected]> wrote:
>
> I would like to use Python / ctypes to test a C library that contains
> some dependencies. Is it possible to satisfy those dependencies from
> within the Python interpreter, by using ctypes to define callables
> (similar to the callback function mechanism)? Or do any dependencies
> have to be defined in other, loadable, libraries?

You need a shim library that calls the ctypes callbacks.

------------------------------------------------------------------------------