how to pass a file descriptor in a swig module
Pierre Schnizer
P.Schnizer at nospam.gsi.de
Thu Jul 3 03:42:10 EDT 2003
More information about the Python-list mailing list
Thu Jul 3 03:42:10 EDT 2003
- Previous message (by thread): how to pass a file descriptor in a swig module
- Next message (by thread): how to pass a file descriptor in a swig module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"kj.kjn" <kj.kjn at wanadoo.fr> writes: > My function func(File * des) is embedded in a module swig. > > I would to know how to call this function from python script and if it's > necessay > > to declare a typemaps ? > > Thank you How to wrap call backs is explained here: http://www.swig.org/Doc1.3/SWIG.html#n30 So basically you just need to wrap the C function to an pointer, and pass that pointer to swig. A simple example is given here: http://www.itp.tu-graz.ac.at/~pierre/swig_example.tar.gz Pierre
- Previous message (by thread): how to pass a file descriptor in a swig module
- Next message (by thread): how to pass a file descriptor in a swig module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list