Subject:
[ruby-ffi] Representing an opaque struct pointer
From:
Misty De Meo
Date:
10/16/13 10:57 PM
To:
ruby-ffi@googlegroups.com

Apologies if this has been asked before - couldn't find it on the list
archives or the wiki.

A library I'm using has an opaque struct (actually a pointer to a C++
object usable in pure C code), which is used in most of the functions
in the public C API. How should I represent this in ffi?

For example, the definition and a function using it:

typedef struct Music_Emu Music_Emu;

gme_err_t gme_open_file( const char path [], Music_Emu** out, int sample_rate );

Thanks,
Misty

-- --- You received this message because you are subscribed to the Google Groups "ruby-ffi" group. To unsubscribe from this group and stop receiving emails from it, send an email to ruby-ffi+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.