1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2021 Igalia S.L.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "soup-client-message-io.h"
void
soup_client_message_io_destroy (SoupClientMessageIO *io)
{
if (!io)
return;
io->funcs->destroy (io);
}
void
soup_client_message_io_finished (SoupClientMessageIO *io,
SoupMessage *msg)
{
io->funcs->finished (io, msg);
}
void
soup_client_message_io_stolen (SoupClientMessageIO *io)
{
io->funcs->stolen (io);
}
void
soup_client_message_io_send_item (SoupClientMessageIO *io,
SoupMessageQueueItem *item,
SoupMessageIOCompletionFn completion_cb,
gpointer user_data)
{
io->funcs->send_item (io, item, completion_cb, user_data);
}
void
soup_client_message_io_pause (SoupClientMessageIO *io,
SoupMessage *msg)
{
io->funcs->pause (io, msg);
}
void
soup_client_message_io_unpause (SoupClientMessageIO *io,
SoupMessage *msg)
{
io->funcs->unpause (io, msg);
}
gboolean
soup_client_message_io_is_paused (SoupClientMessageIO *io,
SoupMessage *msg)
{
return io->funcs->is_paused (io, msg);
}
void
soup_client_message_io_run (SoupClientMessageIO *io,
SoupMessage *msg,
gboolean blocking)
{
io->funcs->run (io, msg, blocking);
}
gboolean
soup_client_message_io_run_until_read (SoupClientMessageIO *io,
SoupMessage *msg,
GCancellable *cancellable,
GError **error)
{
return io->funcs->run_until_read (io, msg, cancellable, error);
}
void
soup_client_message_io_run_until_read_async (SoupClientMessageIO *io,
SoupMessage *msg,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{
io->funcs->run_until_read_async (io, msg, io_priority, cancellable, callback, user_data);
}
gboolean
soup_client_message_io_run_until_finish (SoupClientMessageIO *io,
SoupMessage *msg,
gboolean blocking,
GCancellable *cancellable,
GError **error)
{
return io->funcs->run_until_finish (io, msg, blocking, cancellable, error);
}
GInputStream *
soup_client_message_io_get_response_stream (SoupClientMessageIO *io,
SoupMessage *msg,
GError **error)
{
return io->funcs->get_response_stream (io, msg, error);
}
|