p = Ptr{Int}[0]
ccall((:sp_get_port_by_name, "libserialport"),Cint,(AbstractString, 
Ref{Ptr{Int}}),"/dev/cu.usbmodem1413",p)

or

immutable Port
portpointer::Ptr{Void}
end
p=Port(0)
ccall((:sp_get_port_by_name, "libserialport"),Cint,(AbstractString, 
Ref{Port}),"/dev/cu.usbmodem1413",p)

Reply via email to