[libgdata] GDataDownloadStream: Don't use private libsoup symbol



commit cc229e19456c20ab884f501ce39027faa26c97dd
Author: Colin Walters <walters verbum org>
Date:   Fri Nov 2 12:43:01 2012 -0400

    GDataDownloadStream: Don't use private libsoup symbol
    
    libsoup changed to not export private symbols:
    
    http://git.gnome.org/browse/libsoup/commit/?id=2e1e6999f627bce6fb18e5d94e256da2ac5fef30
    
    Patch-suggested-by: Dan Winship <danw gnome org>

 gdata/gdata-download-stream.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gdata/gdata-download-stream.c b/gdata/gdata-download-stream.c
index f7c5f6a..e4c05aa 100644
--- a/gdata/gdata-download-stream.c
+++ b/gdata/gdata-download-stream.c
@@ -684,8 +684,6 @@ gdata_download_stream_can_seek (GSeekable *seekable)
 	return TRUE;
 }
 
-extern void soup_message_io_cleanup (SoupMessage *msg);
-
 static gboolean
 gdata_download_stream_seek (GSeekable *seekable, goffset offset, GSeekType type, GCancellable *cancellable, GError **error)
 {
@@ -895,7 +893,7 @@ reset_network_thread (GDataDownloadStream *self)
 	}
 
 	if (priv->message != NULL) {
-		soup_message_io_cleanup (priv->message);
+		soup_session_cancel_message (priv->session, priv->message, SOUP_STATUS_CANCELLED);
 	}
 
 	priv->offset = 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]