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:Timothy Wall (twal@dev.java.net)
Date:Oct 31, 2008 6:32:04 am
List:net.java.dev.jna.users

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).

On Oct 31, 2008, at 9:08 AM, Kunal Shah wrote:

But is it possible and up to what % we can auto generate?

On Fri, Oct 31, 2008 at 6:48 AM, Timothy Wall <twal@dev.java.net> wrote: not that I'm aware of.

On Oct 31, 2008, at 5:51 AM, SeB wrote:

Hello all,

I have seen in the todo list there is a plan to develop a tool to convert C header files into jna compatible java source. I would like to know if there is something going on in this domain ?

Thanks for your answer.

SeB.