libpurple/queuedoutputstream.h

Wed, 08 Feb 2023 08:59:47 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Wed, 08 Feb 2023 08:59:47 -0600
changeset 42049
16d2e16bd24f
parent 41881
7e1dd7e9efbb
child 42387
d9350cda1556
permissions
-rw-r--r--

Export Account::error

I can't think of a good reason why we shouldn't expose the error property on
Accounts. But I would like to be able to set the error from the UI when there
is an error in the settings for example.

Testing Done:
Built the docs, ran the tests, used the prune connection action in the demo protocol plugin and verified everything was still working.

Reviewed at https://reviews.imfreedom.org/r/2216/

37665
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
1 /*
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
2 * Purple - Internet Messaging Library
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
37665
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
4 *
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
5 * This program is free software; you can redistribute it and/or modify
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
6 * it under the terms of the GNU General Public License as published by
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
7 * the Free Software Foundation; either version 2 of the License, or
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
8 * (at your option) any later version.
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
9 *
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
10 * This program is distributed in the hope that it will be useful,
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
13 * GNU General Public License for more details.
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
14 *
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
16 * along with this program; if not, see <https://www.gnu.org/licenses/>.
37665
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
17 */
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
18
40474
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
19 #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
20 # error "only <purple.h> may be included directly"
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
21 #endif
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
22
39659
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39540
diff changeset
23 #ifndef PURPLE_QUEUED_OUTPUT_STREAM_H
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39540
diff changeset
24 #define PURPLE_QUEUED_OUTPUT_STREAM_H
37665
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
25
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
26 #include <gio/gio.h>
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
27
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
28 G_BEGIN_DECLS
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
29
39540
8a5927c69f02 Use more standard GObject setup for queuedoutputstream.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39169
diff changeset
30 #define PURPLE_TYPE_QUEUED_OUTPUT_STREAM purple_queued_output_stream_get_type()
37665
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
31
41199
72afb5d62f12 Remove unnecessary gtk-doc comments and move them where possible from libpurple/[q-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
32 /**
72afb5d62f12 Remove unnecessary gtk-doc comments and move them where possible from libpurple/[q-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
33 * PurpleQueuedOutputStream:
72afb5d62f12 Remove unnecessary gtk-doc comments and move them where possible from libpurple/[q-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
34 *
41479
3d2e114380f6 Add source files to GObject introspection
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41199
diff changeset
35 * An implementation of #GFilterOutputStream which allows queuing data for
3d2e114380f6 Add source files to GObject introspection
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41199
diff changeset
36 * output. This allows data to be queued while other data is being output.
3d2e114380f6 Add source files to GObject introspection
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41199
diff changeset
37 * Therefore, data doesn't have to be manually stored while waiting for
3d2e114380f6 Add source files to GObject introspection
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41199
diff changeset
38 * stream operations to finish.
3d2e114380f6 Add source files to GObject introspection
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41199
diff changeset
39 *
3d2e114380f6 Add source files to GObject introspection
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41199
diff changeset
40 * To create a queued output stream, use [ctor@QueuedOutputStream.new].
3d2e114380f6 Add source files to GObject introspection
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41199
diff changeset
41 *
3d2e114380f6 Add source files to GObject introspection
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41199
diff changeset
42 * To queue data, use [method@QueuedOutputStream.push_bytes_async].
3d2e114380f6 Add source files to GObject introspection
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41199
diff changeset
43 *
3d2e114380f6 Add source files to GObject introspection
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41199
diff changeset
44 * If there's a fatal stream error, it's suggested to clear the remaining bytes
3d2e114380f6 Add source files to GObject introspection
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41199
diff changeset
45 * queued with [method@QueuedOutputStream.clear_queue] to avoid excessive
3d2e114380f6 Add source files to GObject introspection
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41199
diff changeset
46 * errors returned in [method@QueuedOutputStream.push_bytes_async]'s async
3d2e114380f6 Add source files to GObject introspection
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41199
diff changeset
47 * callback.
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
48 *
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
49 * Since: 3.0.0
41199
72afb5d62f12 Remove unnecessary gtk-doc comments and move them where possible from libpurple/[q-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents: 40524
diff changeset
50 */
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
51 G_DECLARE_FINAL_TYPE(PurpleQueuedOutputStream, purple_queued_output_stream,
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
52 PURPLE, QUEUED_OUTPUT_STREAM, GFilterOutputStream)
37665
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
53
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
54 /**
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
55 * purple_queued_output_stream_new:
37665
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
56 * @base_stream: Base output stream to wrap with the queued stream
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
57 *
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
58 * Creates a new queued output stream for a base stream.
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
59 *
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
60 * Returns: (transfer full): The new stream.
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
61 *
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
62 * Since: 3.0.0
37665
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
63 */
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
64 PurpleQueuedOutputStream *purple_queued_output_stream_new(GOutputStream *base_stream);
37665
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
65
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
66 /**
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
67 * purple_queued_output_stream_push_bytes_async:
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
68 * @stream: The instance.
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
69 * @bytes: The bytes to queue.
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
70 * @priority: IO priority of the request.
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
71 * @cancellable: (nullable): A [class@Gio.Cancellable] or %NULL.
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
72 * @callback: (scope async): Callback to call when the request is finished.
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
73 * @data: (closure): Data to pass to @callback.
39165
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
74 *
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
75 * Asynchronously queues and then writes data to @stream. Once the data has
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
76 * been written, or an error occurs, @callback will be called.
39165
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
77 *
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
78 * Be careful such that if there's a fatal stream error, all remaining queued
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
79 * operations will likely return this error. Use
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
80 * [method@Purple.QueuedOutputStream.clear_queue] to clear the queue on such
39165
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
81 * an error to only report it a single time.
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
82 *
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
83 * Since: 3.0.0
39165
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
84 */
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
85 void purple_queued_output_stream_push_bytes_async(PurpleQueuedOutputStream *stream, GBytes *bytes, int priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data);
39165
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
86
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
87 /**
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
88 * purple_queued_output_stream_push_bytes_finish:
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
89 * @stream: The instance.
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
90 * @result: The [iface@Gio.AsyncResult] of this operation.
41881
7e1dd7e9efbb Fix error parameter annotations
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41810
diff changeset
91 * @error: Return address for a #GError, or %NULL.
39165
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
92 *
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
93 * Finishes pushing bytes asynchronously.
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
94 *
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
95 * Returns: %TRUE on success, %FALSE if there was an error
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
96 *
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
97 * Since: 3.0.0
39165
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
98 */
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
99 gboolean purple_queued_output_stream_push_bytes_finish(PurpleQueuedOutputStream *stream, GAsyncResult *result, GError **error);
39165
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
100
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
101 /**
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
102 * purple_queued_output_stream_clear_queue:
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
103 * @stream: The instance.
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
104 *
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
105 * Clears the queue of any pending bytes. However, any bytes that are in the
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
106 * process of being sent will finish their operation.
39165
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
107 *
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
108 * This function is useful for clearing the queue in case of an IO error. Call
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
109 * this in the async callback in order to clear the queue and avoid having all
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
110 * [method@Purple.QueuedOutputStream.push_bytes_async] calls on @stream return
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
111 * errors if there's a fatal stream error.
39165
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
112 *
41795
95c0077fe6bb Fix the docs and do some minor clean up for PurpleQueuedOutputStream
Gary Kramlich <grim@reaperworld.com>
parents: 41686
diff changeset
113 * Since: 3.0.0
39165
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
114 */
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
115 void purple_queued_output_stream_clear_queue(PurpleQueuedOutputStream *stream);
62b8ef4dd1d3 queuedoutputstream: Refactor to behave better with the rest of Gio
Mike Ruprecht <cmaiku@gmail.com>
parents: 38564
diff changeset
116
37665
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
117 G_END_DECLS
3eab84b9b88f libpurple: Add PurpleQueuedOutputStream for fire and forget output
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff changeset
118
39659
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39540
diff changeset
119 #endif /* PURPLE_QUEUED_OUTPUT_STREAM_H */

mercurial