den-run-ai / ctypesgen

Automatically exported from code.google.com/p/ctypesgen
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Feature request: option to treat certain pointers as opaque #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be really nice to be able to ask ctypesgen to not recursively define 
certain kinds of pointers and simply treat them as opaque (void *).  For 
example, I keep Berkeley DB "DB *" pointers around.  The python bindings 
shouldn't need to care that it's a DB pointer as I'm never going to dereference 
it, and the fact that it _does_ care means it tries to write wrappers for the 
DB struct, which basically means it tries to write wrappers for all of Berkeley 
DB.  I don't want or need that, and it explodes the size (and complexity) of 
the generated file.

(Thanks for all your work though...great tool!)

Original issue reported on code.google.com by halcyo...@gmail.com on 5 Aug 2011 at 6:27