3 messages in net.java.dev.jna.usersRe: JRuby / JNA / pointer to struct
FromSent OnAttachments
Timothy WallSep 11, 2007 9:09 am 
skaarSep 11, 2007 11:15 am 
Timothy WallSep 11, 2007 11:40 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: JRuby / JNA / pointer to structActions...
From:skaar (ska@waste.org)
Date:Sep 11, 2007 11:15:59 am
List:net.java.dev.jna.users

In c, you would access 'fd', with dpy->fd, but right now I'm not sure how to access that either in JRuby, nor in Java.

The call in JRuby, retuns a com.sun.jna.Pointer object - do you have any ideas on how to approach this to initially access the struct data?

I don't think X11 intends for you to be poking about in the Display structure.

The only reason for this, was that there is a numer of macros defined in Xlib.h, such as ConnectionNumber, DefaultScreen which are returning data using these, which I belive need to be replaced by Java/JRuby eqivialents in a X11 implementaton. They are in the AllPlanes(3) man page.

Thanks for the comments

----------------------------------------------------------------------