-
Notifications
You must be signed in to change notification settings - Fork 29
Description
In case you are interested in trying to push this further with structs, I pushed a branch with generated Julia types for all the cURL structs (I didn't merge this stuff into the generator yet, needs a few tweaks still for more complicated structs):
https://github.com/ihnorton/libCURL.jl/tree/struct_test
There are (at least) three structs with unsupported field types (you can tell by searching for ::Void):
CURLMsg
curl_fileinfo
curl_sockaddr
If you need these, it will be necessary to use StrPack as discussed by @pao (https://groups.google.com/d/msg/julia-dev/p6DUUSdtY2A/CR3zeC3QyeIJ)
Also, for the other ones you may need to change "type" to "immutable" in the declarations in order to make sure isbits(type) == true (see: https://groups.google.com/d/msg/julia-dev/jiJpHlgLZkA/ftClOEROlLYJ )
If you have a chance to try it I will be very interested to see the results! (also any issues)