projects
/
cinaest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e809997
)
Update libcurl.vapi for newer vala version
author
Philipp Zabel
<philipp.zabel@gmail.com>
Sat, 22 May 2010 13:43:11 +0000
(15:43 +0200)
committer
Philipp Zabel
<philipp.zabel@gmail.com>
Wed, 14 Jul 2010 21:34:08 +0000
(23:34 +0200)
Fixes warnings.
vapi/libcurl.vapi
patch
|
blob
|
history
diff --git
a/vapi/libcurl.vapi
b/vapi/libcurl.vapi
index
40a9e64
..
2bed2be
100644
(file)
--- a/
vapi/libcurl.vapi
+++ b/
vapi/libcurl.vapi
@@
-28,6
+28,8
@@
namespace Curl {
public Curl.Code send (void *buffer, size_t buflen, out size_t n);
public string escape (string @string, int length);
public string unescape (string @string, int length, out int outlength);
public Curl.Code send (void *buffer, size_t buflen, out size_t n);
public string escape (string @string, int length);
public string unescape (string @string, int length, out int outlength);
+ [CCode (has_target = false)]
+ public delegate int SocketCallback (Curl.Socket s, int what, void* userp, void *socketp);
}
[CCode (cname = "CURLcode", cprefix = "CURLE_")]
public enum Code {
}
[CCode (cname = "CURLcode", cprefix = "CURLE_")]
public enum Code {
@@
-551,7
+553,7
@@
namespace Curl {
[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);
[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);
- public weak string version ();
+ public unowned string version ();
public void free (void* p);
[Compact]
[CCode (cname = "struct curl_slist", cprefix = "curl_slist_", free_function = "curl_slist_free_all")]
public void free (void* p);
[Compact]
[CCode (cname = "struct curl_slist", cprefix = "curl_slist_", free_function = "curl_slist_free_all")]
@@
-602,9
+604,9
@@
namespace Curl {
[Printf]
public Curl.MultiCode setopt (Curl.MultiOption option, ...);
public Curl.MultiCode assign (Curl.Socket sockfd, void* sockp);
[Printf]
public Curl.MultiCode setopt (Curl.MultiOption option, ...);
public Curl.MultiCode assign (Curl.Socket sockfd, void* sockp);
+ [CCode (has_target = false)]
+ public delegate int TimerCallback (long timeout_ms, void* userp);
}
}
- public static delegate int TimerCallback (Curl.MultiHandle multi, long timeout_ms, void* userp);
- public static delegate int SocketCallback (Curl.EasyHandle easy, Curl.Socket s, int what, void* userp, void *socketp);
[SimpleType]
[CCode (cname = "curl_socket_t")]
public struct Socket {
[SimpleType]
[CCode (cname = "curl_socket_t")]
public struct Socket {