From: Arno P. <ar...@pu...> - 2011-05-07 17:07:29
|
it should be easy to integrate an existing C library with XMLVM. Simply create a Java class with a native method. The native method can then call the external C library. I would suggest a similar approach for the other way around. Have the main entry point (the main() method) always in XMLVM so it can do the proper initializations, then call the C side. From there you can make callbacks into the generated C code. Of course you would have to understand the XMLVM-internal data structures. You can first create some Java code that does what you want to do in C and then look at the generated code to get an idea how to access the data structures. Arno On 5/6/11 3:42 AM, Palic, Darko wrote: > Hello all, > > I am evaluating if it would be possible to integrate the generated posix > code into a existing c-project. > For me it is currently not clear, how I could interop with the datatypes > in the posix-gen-code and the existing c-code? > > Does anybody here uses xmlvm as the part of a existing C-/C++-Project? > > bye, > Darko > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |