ILLEGAL_ARRAY,
DISABLED
}
- public Curl.FormCode formadd (ref Curl.HTTPPost httppost, ref Curl.HTTPPost last_post, ...);
+ [CCode (sentinel = "CURLFORM_END")]
+ public Curl.FormCode formadd (ref Curl.HTTPPost httppost, ref unowned Curl.HTTPPost last_post, ...);
[CCode (cname = "curl_formget_callback")]
public delegate size_t FormgetCallback (void* arg, [CCode (array_size_type = "size_t")] char[] buf);
public int formget (Curl.HTTPPost form, void* arg, Curl.FormgetCallback append);
[Compact]
[CCode (cname = "struct curl_slist", cprefix = "curl_slist_", free_function = "curl_slist_free_all")]
public class SList {
- public char* data;
+ public string data;
public Curl.SList next;
- public SList append (string data);
+ public static SList append (SList? slist, string data);
}
[CCode (cname = "CURLMcode", cprefix = "CURLM_")]
public enum MultiCode {
MAXCONNECTS
}
[Compact]
- [CCode (cname = "curl_httppost", unref_function = "curl_formfree")]
+ [CCode (cname = "struct curl_httppost", free_function = "curl_formfree")]
public class HTTPPost {
public Curl.HTTPPost next;
[CCode (array_length_cname = "namelength", array_length_type = "long")]