[julia-users] ccall with an opaque struct

2016-02-11 Thread Lutfullah Tomak
Try p = Ptr{Int}[] julia> ccall((:sp_get_port_by_name, "libserialport"),Cint,(AbstractString, Ref{Ptr{Int}}),"/dev/cu.usbmodem1413",p) or im;mutable Port x:

[julia-users] ccall with an opaque struct

2016-02-11 Thread Andrew Adare
I'm trying to call out to some library functions from libserialport . It is a small c library that makes extensive use of opaque structs in the API. In c I can do the following: #include #include // Compile: // gcc -o example example.c $(pkg-config --cfl