fix message ownership issues
authorJuerg Billeter <j@bitron.ch>
Fri, 8 Feb 2008 16:09:07 +0000 (16:09 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Fri, 8 Feb 2008 16:09:07 +0000 (16:09 +0000)
2008-02-08  Juerg Billeter  <j@bitron.ch>

* vapi/packages/libsoup-2.2/: fix message ownership issues

* vapi/libsoup-2.2.vapi: regenerated

svn path=/trunk/; revision=999

ChangeLog
vapi/libsoup-2.2.vapi
vapi/packages/libsoup-2.2/libsoup-2.2.metadata

index 36431c1..ef75753 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-02-08  Jürg Billeter  <j@bitron.ch>
 
+       * vapi/packages/libsoup-2.2/: fix message ownership issues
+
+       * vapi/libsoup-2.2.vapi: regenerated
+
+2008-02-08  Jürg Billeter  <j@bitron.ch>
+
        * vapi/glib-2.0.vapi: add missing attributes to GType binidng for
          use as property or signal parameter
 
index df9e3cc..3c2b736 100644 (file)
@@ -340,7 +340,7 @@ namespace Soup {
                public Soup.DataBuffer response;
                public weak GLib.HashTable response_headers;
                public Soup.MessageStatus status;
-               public void add_chunk (Soup.Ownership owner, string body, uint length);
+               public void add_chunk (Soup.Ownership owner, string# body, uint length);
                public void add_final_chunk ();
                public void add_handler (Soup.HandlerPhase phase, Soup.MessageCallbackFn handler_cb, pointer user_data);
                public static void add_header (GLib.HashTable hash, string name, string value);
@@ -368,8 +368,8 @@ namespace Soup {
                public void send_request (Soup.Socket sock, bool is_via_proxy);
                public void set_flags (uint flags);
                public void set_http_version (Soup.HttpVersion version);
-               public void set_request (string content_type, Soup.Ownership req_owner, string req_body, ulong req_length);
-               public void set_response (string content_type, Soup.Ownership resp_owner, string resp_body, ulong resp_length);
+               public void set_request (string content_type, Soup.Ownership req_owner, string# req_body, ulong req_length);
+               public void set_response (string content_type, Soup.Ownership resp_owner, string# resp_body, ulong resp_length);
                public void set_status (uint status_code);
                public void set_status_full (uint status_code, string reason_phrase);
                public void set_uri (Soup.Uri uri);
@@ -525,7 +525,7 @@ namespace Soup {
        [CCode (cheader_filename = "libsoup/soup.h")]
        public struct DataBuffer {
                public Soup.Ownership owner;
-               public weak string body;
+               public string body;
                public uint length;
        }
        public static delegate void AddressCallback (Soup.Address addr, uint status, pointer data);
index 7e8ac8e..436229a 100644 (file)
@@ -4,11 +4,15 @@ soup_address_new_from_sockaddr hidden="1"
 SoupConnection::authenticate has_emitter="1"
 SoupConnection::reauthenticate has_emitter="1"
 SoupDataBuffer is_value_type="1"
+SoupDataBuffer.body weak="0"
 soup_dns_lookup_address hidden="1"
 soup_dns_ntop hidden="1"
 SoupMessage::finished has_emitter="1"
+soup_message_add_chunk.body transfer_ownership="1"
 soup_message_foreach_header hidden="1"
 soup_message_pop_chunk hidden="1"
+soup_message_set_request.req_body transfer_ownership="1"
+soup_message_set_response.resp_body transfer_ownership="1"
 SoupMessage::got_body has_emitter="1"
 SoupMessage::got_chunk has_emitter="1"
 SoupMessage::got_headers has_emitter="1"