diff options
author | Dan Winship <danw@gnome.org> | 2010-05-29 15:24:51 +0200 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2010-06-09 11:23:00 -0400 |
commit | b5cc3e113a9f29f0a77cf8f634c233323844d9f7 (patch) | |
tree | 373ad85657efe9521f182a8844faf6cfa31a3b69 /libsoup/soup-connection.h | |
parent | f3f1e3822459a8b1f38661177069a3a9e617bdc5 (diff) | |
download | libsoup-b5cc3e113a9f29f0a77cf8f634c233323844d9f7.tar.gz |
soup-message-io: use SoupMessageQueueItems and add SoupMessageCompletionFn
push SoupMessageQueueItem down into soup-message-io, and end the I/O
process by calling a completion callback rather than emitting the
SoupMessage signals directly, which gives the session greater control.
Diffstat (limited to 'libsoup/soup-connection.h')
-rw-r--r-- | libsoup/soup-connection.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libsoup/soup-connection.h b/libsoup/soup-connection.h index 558a4655..629676b2 100644 --- a/libsoup/soup-connection.h +++ b/libsoup/soup-connection.h @@ -9,6 +9,7 @@ #include <gio/gio.h> #include "soup-types.h" +#include "soup-message-private.h" #include "soup-misc.h" G_BEGIN_DECLS @@ -20,10 +21,10 @@ G_BEGIN_DECLS #define SOUP_IS_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SOUP_TYPE_CONNECTION)) #define SOUP_CONNECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_CONNECTION, SoupConnectionClass)) -typedef struct { +struct _SoupConnection { GObject parent; -} SoupConnection; +}; typedef struct { GObjectClass parent_class; @@ -75,8 +76,11 @@ void soup_connection_set_state (SoupConnection *conn, gboolean soup_connection_get_ever_used (SoupConnection *conn); -void soup_connection_send_request (SoupConnection *conn, - SoupMessage *req); +void soup_connection_send_request (SoupConnection *conn, + SoupMessageQueueItem *item, + SoupMessageCompletionFn completion_cb, + gpointer user_data); + G_END_DECLS |