[C++-sig] [Boost.Python] Wrapping C library functions
wingusr at gmail.com
Mon Feb 15 01:32:42 CET 2010
Suppose I am attempting to use a C (not C++) library that has an .h file
with things like this:
extern PIX * pixCreate ( l_int32 width, l_int32 height, l_int32 depth );
extern void pixDestroy ( PIX **ppix );
extern PIX * pixClone ( PIX *pixs );
extern PIX * pixCopy ( PIX *pixd, PIX *pixs );
Is it possible to use Boost.Python to wrap such functions?
In particular, note that pixDestroy() is going to want the address of the
pointer returned by pixCreate().
(This is from the leptprotos.h file of the Leptonica Image Processing
library at leptonica.com)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Cplusplus-sig