X-Git-Url: http://git.maemo.org/git/?p=beifahrer;a=blobdiff_plain;f=vapi%2Flibcurl.vapi;h=5857006bba54133e5e144cd67701f139c19d75d3;hp=7599e88f1db9fb6ce92a7d6836788578eeedb169;hb=HEAD;hpb=5de50390257b07bed7c802816c413f691475316c;ds=sidebyside diff --git a/vapi/libcurl.vapi b/vapi/libcurl.vapi index 7599e88..5857006 100644 --- a/vapi/libcurl.vapi +++ b/vapi/libcurl.vapi @@ -550,7 +550,8 @@ namespace Curl { 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); @@ -559,9 +560,9 @@ namespace Curl { [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 { @@ -647,7 +648,7 @@ namespace Curl { 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")]