On 09.02.2007 17:27, Quentin Anciaux wrote: > Because "csutil/flags.h" was not included, which gives only access to a > class > SWIGTYPE_p_csFlags with which you can do nothing.
Hmm, maybe that should be corrected then :) > > By adding %include "csutil/flags.h", it is better, you have access to csflags > class (and the Set method) but the method is defined like this : > > public void Set(SWIGTYPE_p_uint32_t mask); > > Which again gives you a pointer with which you can do nothing except pass it. > > I didn't found how to tell swig to take uint32 as a java int instead of > returning an uint32 pointer... so I added the inlined function above. Hm, I'm not much of a swig person myself. But perhaps a typemap (http://www.swig.org/Doc1.3/Typemaps.html, http://www.swig.org/Doc1.3/Java.html#java_typemaps) would help... -f.r.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Crystal-main mailing list Crystal-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]