On Tue, Dec 15, 2009 at 12:40 AM, Nikolaus Rath <nikol...@rath.org> wrote: > Roman Yakovenko <roman.yakove...@gmail.com> writes: >> May be you should take a look on >> "module_builder/ctypes_decl_dependencies.py" module. It contains >> "find_out_dependencies" functionality. As input it takes a set of >> declarations you want to expose, the output is a set of all classes, >> that need to be exposed. > > Update: I found an usage example in ctypes_builder.py and came up with > the following code: > > included_decls = set([mb.global_ns.class_('fuse_lowlevel_ops')]) > to_be_included = > ctypes_decls_dependencies.find_out_dependencies(included_decls) > to_be_included.update(included_decls) > map( lambda d: d.include(), to_be_included ) > > but the resulted generated code still contains only the single struct: > > fuse_lowlevel_ops._fields_ = [ #class fuse_lowlevel_ops > ("init", ctypes.POINTER( ctypes.CFUNCTYPE( None, ctypes.c_void_p, > ctypes.POINTER( fuse_conn_info ) ) )), > ("destroy", ctypes.POINTER( ctypes.CFUNCTYPE( None, ctypes.c_void_p ) )), > ("lookup", ctypes.POINTER( ctypes.CFUNCTYPE( None, ctypes.POINTER( > fuse_req ), ctypes.c_ulong, ctypes.c_char_p ) )), > > although there are clearly dependencies on fuse_conn_info and fuse_req.
Can you create a small example, which reproduce the problem and send it to me? Thanks -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig