From: William S F. <ws...@fu...> - 2005-11-15 20:09:30
|
have you tried the %rename directive? Igor devor wrote: > Hi, > > I test this about my SWIGTYPE_p_p_Factory : > > the definition is : > typedef struct Factory _Factory; > > So i change to : > typedef struct Factory { > short nothing; > } _Factory; > > And then the _Factory java class is generated by swig. > That works too with : > typedef struct Factory { > } _Factory; > > How can i force swig generation without change c code ? > > > Thanks, > Igor > > > > -----Message d'origine----- > De : swi...@li... > [mailto:swi...@li...] De la part de Igor devor > Envoyé : lundi 14 novembre 2005 18:06 > À : swi...@li... > Objet : RE: [Swig-user] Double pointer and struct > > Hi, > > The c wraper generation seem good. Functions contain the code in > %typemap(argout). > But swig don't generate _Factory java class. > It generate SWIGTYPE_p_p_Factory class like before i add the given > code. > Did have I forgot something or make mistake ? > > Thanks, > Igor > > -----Message d'origine----- > De : swi...@li... > [mailto:swi...@li...] De la part de William S > Fulton Envoyé : samedi 12 novembre 2005 22:49 À : Igor devor Cc : > swi...@li... Objet : Re: [Swig-user] Double pointer and > struct > > Igor devor wrote: >>Hi, >> >> I'am a very beginner with swig and I have a complex (for me) data. >> The target language is java. >> >> The data type is define like this in C >> >>typedef struct Factory _Factory; >>typedef struct Conv _Conv; >> And two methods : >> >>extern Err createFactory( _Factory **factory); >> >>extern Err openFromFactory(_Factory *factory, _Conv **conv); >>The **factory are null and initializze in the createFactory method, >>and i must get the result (OUTPUT). >>Same thing for _Conv **conv. >> >>swig generate SWIGTYPE_p_Conv, SWIGTYPE_p_Factory, SWIGTYPE_p_p_Conv >>and SWIGTYPE_p_p_Factory class but I didn't now how to useit. >> >>I look at the documentation for typemap and OUTPUT but i don't know >>how to begin. >> > > Doc/Manual/Java.html#struct_pointer_pointer has a section with some ideas > for handling pointer to pointers. > > William > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_idv28&alloc_id845&op=click > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user > |