Ruby/DL - how to declare a typedef?

C

Carl Youngblood

I'm trying to learn Ruby/DL, but I'm having trouble with the lack of
documentation. _why's brief tutorial was a good start, but I'm trying
to import a library that has a ton of typedefs in it. How do I do
these? Do I need to declare equivalent Ruby datatypes? What if they
don't map perfectly?

Thanks,
Carl Youngblood
 
C

Carl Youngblood

Here is a concrete example:

typedef unsigned short int CK_USHORT;
typedef CK_USHORT CK_RV;
typedef NULL CK_VOID_PTR;

/* function C_Initialize() */
CK_RV C_Initialize(CK_VOID_PTR pReserved);

Thanks,
Carl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,147
Messages
2,570,833
Members
47,378
Latest member
BlakeLig

Latest Threads

Top