7 messages in net.java.dev.jna.usersRE: [jna-users] Automatic C header co...
FromSent OnAttachments
SeBOct 31, 2008 2:50 am 
Timothy WallOct 31, 2008 4:48 am 
Kunal ShahOct 31, 2008 6:08 am 
Timothy WallOct 31, 2008 6:32 am 
SeBNov 2, 2008 10:53 am 
Timothy WallNov 2, 2008 11:01 am 
SeBNov 3, 2008 6:44 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [jna-users] Automatic C header converterActions...
From:SeB (java@gandon.name)
Date:Nov 2, 2008 10:53:14 am
List:net.java.dev.jna.users

I Timothy and all,

Having an automatic header converter would also be a time save in this forum caus mainly most people ask question when they have conversion trouble. My main interest for this converter would be that I must interact with windows DLL from wich I have the headers file but not too much C knowledge.

I will also investigate the SWIG to java JNI generation because I do not want to put my finger into C too much.

Thanks for your answers anyway.

SeB.

From: Timothy Wall <twal@dev.java.net> To: use@jna.dev.java.net Date: Fri, 31 Oct 2008 09:32:27 -0400 Subject: Re: [jna-users] Automatic C header converter It's certainly possible. Someone with a good grasp of SWIG could probably rig their parser to output JNA interfaces without too much trouble. There are other parser/generators available, but SWIG is the only one I've looked at in depth.

It's just that for me, the cost of learning the SWIG parser/generator far outweighs the cost of doing a few function mappings at a time.

It might be worth it if you needed to map a really large code base, or one that is often being changed (like ffmpeg, for instance).