Debian packaging: 0.0.4-1
[beifahrer] / vapi / libcurl.vapi
index 7599e88..5857006 100644 (file)
@@ -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")]