C2HS - marchalling arrays

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

C2HS - marchalling arrays

Alexey Raga
Hi,

I am using c2hs and I want to create bindings for a C function with the following signature:

my_function(my_struct_t*, int* values, size_t num_values);

Ideally I'd like to have a function that accepts [CInt], not a pair (pointer, size). 
What is the easiest way to do it? Can c2hs help me with this or I need to do it manually?

Regards,
Alexey.

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe