summaryrefslogtreecommitdiff
path: root/libsoup/soup-socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsoup/soup-socket.h')
-rw-r--r--libsoup/soup-socket.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/libsoup/soup-socket.h b/libsoup/soup-socket.h
index 71e9545c..710f6fec 100644
--- a/libsoup/soup-socket.h
+++ b/libsoup/soup-socket.h
@@ -7,6 +7,7 @@
#define SOUP_SOCKET_H 1
#include <libsoup/soup-types.h>
+#include <gio/gio.h>
G_BEGIN_DECLS
@@ -51,15 +52,19 @@ SoupSocket *soup_socket_new (const char *optname1,
...) G_GNUC_NULL_TERMINATED;
void soup_socket_connect_async (SoupSocket *sock,
+ GCancellable *cancellable,
SoupSocketCallback callback,
gpointer user_data);
-guint soup_socket_connect_sync (SoupSocket *sock);
+guint soup_socket_connect_sync (SoupSocket *sock,
+ GCancellable *cancellable);
gboolean soup_socket_listen (SoupSocket *sock);
-gboolean soup_socket_start_ssl (SoupSocket *sock);
+gboolean soup_socket_start_ssl (SoupSocket *sock,
+ GCancellable *cancellable);
gboolean soup_socket_start_proxy_ssl (SoupSocket *sock,
- const char *ssl_host);
+ const char *ssl_host,
+ GCancellable *cancellable);
gboolean soup_socket_is_ssl (SoupSocket *sock);
void soup_socket_disconnect (SoupSocket *sock);
@@ -80,6 +85,7 @@ SoupSocketIOStatus soup_socket_read (SoupSocket *sock,
gpointer buffer,
gsize len,
gsize *nread,
+ GCancellable *cancellable,
GError **error);
SoupSocketIOStatus soup_socket_read_until (SoupSocket *sock,
gpointer buffer,
@@ -88,12 +94,14 @@ SoupSocketIOStatus soup_socket_read_until (SoupSocket *sock,
gsize boundary_len,
gsize *nread,
gboolean *got_boundary,
+ GCancellable *cancellable,
GError **error);
SoupSocketIOStatus soup_socket_write (SoupSocket *sock,
gconstpointer buffer,
gsize len,
gsize *nwrote,
+ GCancellable *cancellable,
GError **error);
G_END_DECLS