8 messages in net.java.dev.jna.usersRe: [jna-users] Is there a way to han...
FromSent OnAttachments
Dennis PortelloMay 14, 2007 7:27 am 
Wayne MeissnerMay 14, 2007 5:59 pm 
Dennis PortelloMay 15, 2007 10:48 pm 
Wayne MeissnerMay 16, 2007 3:54 am 
Timothy WallMay 16, 2007 5:51 am 
Timothy WallAug 27, 2007 9:53 am 
Dennis PortelloAug 27, 2007 9:59 am 
Timothy WallAug 27, 2007 11:27 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] Is there a way to handle a union construct?Actions...
From:Timothy Wall (twal@dev.java.net)
Date:Aug 27, 2007 11:27:04 am
List:net.java.dev.jna.users

There's a contrib library in the distro, so you're welcome to add it there when it's ready.

T.

On Aug 27, 2007, at 12:59 PM, Dennis Portello wrote:

Sweet! thank you!

I've worked up a nice POSIX library I've been using for Tomcat process control on Linux. I'd like to share it at some point. We haven't synced with the repository in a while.

-Dennis P.

On 8/27/07, Timothy Wall <twal@dev.java.net> wrote: Just to close this thread out, unions have been implemented on the trunk.

On May 16, 2007, at 6:55 AM, Wayne Meissner wrote:

I've been looking at the Structure class to see if I could derive a Union class from it. My C is a bit rusty these days, so I'm looking for a nice challenge.

Unions are a bit tricky to implement properly in JNA. Although a Union class could be implemented, where it maps each of its members to the same memory area (basically the same as my example), there is no way for JNA to know which one of those members holds the most recently modified values that need to be written out to native memory.