Re: [julia-users] Translating void* *bufs for a Julia type

2015-07-22 Thread Dave C
Awesome - that makes sense. Thank you! I had an issue where I was trying to set procFunc and resetFunc to 'nothing', but that didn't work. I made a NULLPTR object with 'NULLPTR=convert(Ptr{Void},0). Thanks again! Here is code that works for my example: immutable my_t a::Cint

Re: [julia-users] Translating void* *bufs for a Julia type

2015-07-21 Thread Isaiah Norton
immutable my_t a::Cint b::Cint c::Cint bufs::Ptr{Ptr{Void}} flags::Cint procFunc::Ptr{Void} resetFunc::Ptr{Void} end On Tue, Jul 21, 2015 at 7:21 PM, Dave C dave.cr...@gmail.com wrote: I'm trying to wrap some C code that has a struct in a

[julia-users] Translating void* *bufs for a Julia type

2015-07-21 Thread Dave C
I'm trying to wrap some C code that has a struct in a header. I'm trying to create a Julia type that emulates the following struct: typedef struct { int a; int b; int c; void* *bufs; int flags; void* procFunc; void* resetFunc; } my_t; I'm fine with everything except