summaryrefslogtreecommitdiff
path: root/rest/rest-private.h
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2021-06-08 17:44:04 +0200
committerGünther Wagner <info@gunibert.de>2021-11-04 21:39:51 +0100
commitf014c22bbb1e5dd857d6e47c5acf5f58fc28cecf (patch)
tree586b94fb13ac152e717ae454bdb841c10a87a830 /rest/rest-private.h
parente55578092e347a4fce887d5a278dc007204fa5cd (diff)
downloadlibrest-f014c22bbb1e5dd857d6e47c5acf5f58fc28cecf.tar.gz
Port to libsoup3
Diffstat (limited to 'rest/rest-private.h')
-rw-r--r--rest/rest-private.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/rest/rest-private.h b/rest/rest-private.h
index 9e91fa0..6e71322 100644
--- a/rest/rest-private.h
+++ b/rest/rest-private.h
@@ -31,6 +31,11 @@
G_BEGIN_DECLS
+typedef void (*RestMessageFinishedCallback) (SoupMessage *msg,
+ GBytes *body,
+ GError *error,
+ gpointer user_data);
+
typedef enum
{
REST_DEBUG_XML_PARSER = 1 << 0,
@@ -53,12 +58,23 @@ gboolean _rest_proxy_get_binding_required (RestProxy *proxy);
const gchar *_rest_proxy_get_bound_url (RestProxy *proxy);
void _rest_proxy_queue_message (RestProxy *proxy,
SoupMessage *message,
- SoupSessionCallback callback,
+ GCancellable *cancellable,
+ RestMessageFinishedCallback callback,
gpointer user_data);
void _rest_proxy_cancel_message (RestProxy *proxy,
SoupMessage *message);
-guint _rest_proxy_send_message (RestProxy *proxy,
- SoupMessage *message);
+GBytes *_rest_proxy_send_message (RestProxy *proxy,
+ SoupMessage *message,
+ GCancellable *cancellable,
+ GError **error);
+void _rest_proxy_send_message_async (RestProxy *proxy,
+ SoupMessage *message,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+GInputStream *_rest_proxy_send_message_finish (RestProxy *proxy,
+ GAsyncResult *result,
+ GError **error);
RestXmlNode *_rest_xml_node_new (void);
void _rest_xml_node_reverse_children_siblings (RestXmlNode *node);