Subject:
Re: [ruby-ffi] global variables
From:
Shawn Anderson
Date:
3/17/10 7:38 PM
To:
ruby-ffi@googlegroups.com

I think you are looking for attach_variable 'xosd_error', :pointer

you can see an example usage here:
http://github.com/shawn42/chipmunk-ffi/blob/master/lib/chipmunk-ffi.rb#L20

HTH,
Shawn

On Wed, Mar 17, 2010 at 4:23 PM, Peter <peter.schrammel@gmx.de> wrote:
Hi,

how can I access global variables? I read it in the feature list but
can't find an example,spec ....

E.g the header file of libxosd has something like this:

extern char *xosd_error;

And I'd like to have that string.


THX

Peter