Tue, 24 Oct 2023 02:02:49 -0500
Add Since and symbol visibility to new-in-3.0 things
Mostly found through comparing ABI on `release-2.x.y` and `default`.
Note this only covers things that show up in the ABI, so macros, typedefs and the like won't be tagged.
Testing Done:
Compiled only.
Bugs closed: PIDGIN-17838
Reviewed at https://reviews.imfreedom.org/r/2688/
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
1 | /* Purple is the legal property of its developers, whose names are too numerous |
| 13201 | 2 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 3 | * source distribution. | |
| 4 | * | |
| 5 | * This program is free software; you can redistribute it and/or modify | |
| 6 | * it under the terms of the GNU General Public License as published by | |
| 7 | * the Free Software Foundation; either version 2 of the License, or | |
| 8 | * (at your option) any later version. | |
| 9 | * | |
| 10 | * This program is distributed in the hope that it will be useful, | |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | * GNU General Public License for more details. | |
| 14 | * | |
| 15 | * You should have received a copy of the GNU General Public License | |
| 16 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15884
diff
changeset
|
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 13201 | 18 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
19 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
39978
diff
changeset
|
20 | #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:
39978
diff
changeset
|
21 | # 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:
39978
diff
changeset
|
22 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
39978
diff
changeset
|
23 | |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
24 | #ifndef PURPLE_CIRCULAR_BUFFER_H |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
25 | #define PURPLE_CIRCULAR_BUFFER_H |
|
35433
8dcae6cd6628
Add section blocks for account.h to connection.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
26 | |
|
14013
86dac5633bd9
[gaim-migrate @ 16496]
Mark Doliner <markdoliner@pidgin.im>
parents:
13233
diff
changeset
|
27 | #include <glib.h> |
|
34529
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
28 | #include <glib-object.h> |
|
13230
44b216532ea2
[gaim-migrate @ 15594]
Mark Doliner <markdoliner@pidgin.im>
parents:
13213
diff
changeset
|
29 | |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
30 | #include "purpleversion.h" |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
31 | |
|
39661
c8f98b167882
Change some libpurple object to GObject macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39380
diff
changeset
|
32 | G_BEGIN_DECLS |
|
13230
44b216532ea2
[gaim-migrate @ 15594]
Mark Doliner <markdoliner@pidgin.im>
parents:
13213
diff
changeset
|
33 | |
|
39661
c8f98b167882
Change some libpurple object to GObject macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39380
diff
changeset
|
34 | #define PURPLE_TYPE_CIRCULAR_BUFFER (purple_circular_buffer_get_type()) |
|
c8f98b167882
Change some libpurple object to GObject macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39380
diff
changeset
|
35 | G_DECLARE_DERIVABLE_TYPE(PurpleCircularBuffer, purple_circular_buffer, PURPLE, |
|
c8f98b167882
Change some libpurple object to GObject macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39380
diff
changeset
|
36 | CIRCULAR_BUFFER, GObject) |
|
34529
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
37 | |
|
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
38 | struct _PurpleCircularBufferClass { |
|
34691
3acdd397a9c1
Removed reserved fields from instance structs.
Ankit Vani <a@nevitus.org>
parents:
34570
diff
changeset
|
39 | /*< private >*/ |
|
34529
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
40 | GObjectClass parent; |
|
13230
44b216532ea2
[gaim-migrate @ 15594]
Mark Doliner <markdoliner@pidgin.im>
parents:
13213
diff
changeset
|
41 | |
|
34529
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
42 | void (*grow)(PurpleCircularBuffer *buffer, gsize len); |
|
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
43 | void (*append)(PurpleCircularBuffer *buffer, gconstpointer src, gsize len); |
|
39380
3088866c22f4
libpurple: Port almost self-contained code from g_type_class_add_private()
Mike Ruprecht <cmaiku@gmail.com>
parents:
38715
diff
changeset
|
44 | gsize (*max_read_size)(PurpleCircularBuffer *buffer); |
|
34529
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
45 | gboolean (*mark_read)(PurpleCircularBuffer *buffer, gsize len); |
|
13230
44b216532ea2
[gaim-migrate @ 15594]
Mark Doliner <markdoliner@pidgin.im>
parents:
13213
diff
changeset
|
46 | |
|
34529
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
47 | void (*purple_reserved1)(void); |
|
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
48 | void (*purple_reserved2)(void); |
|
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
49 | void (*purple_reserved3)(void); |
|
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
50 | void (*purple_reserved4)(void); |
|
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
51 | }; |
| 13201 | 52 | |
| 53 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
54 | * purple_circular_buffer_new: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35071
diff
changeset
|
55 | * @growsize: The amount that the buffer should grow the first time data |
|
13213
8dcf2385a862
[gaim-migrate @ 15576]
Mark Doliner <markdoliner@pidgin.im>
parents:
13201
diff
changeset
|
56 | * is appended and every time more space is needed. Pass in |
|
8dcf2385a862
[gaim-migrate @ 15576]
Mark Doliner <markdoliner@pidgin.im>
parents:
13201
diff
changeset
|
57 | * "0" to use the default of 256 bytes. |
| 13201 | 58 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
59 | * Creates a new circular buffer. This will not allocate any memory for the |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
60 | * actual buffer until data is appended to it. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
61 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35071
diff
changeset
|
62 | * Returns: The new PurpleCircularBuffer. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
63 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
64 | * Since: 3.0.0 |
| 13201 | 65 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
66 | PURPLE_AVAILABLE_IN_3_0 |
|
34529
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
67 | PurpleCircularBuffer *purple_circular_buffer_new(gsize growsize); |
| 13201 | 68 | |
| 69 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
70 | * purple_circular_buffer_append: |
|
38715
98d5a19c04a9
Fix inconsistent parameter names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37094
diff
changeset
|
71 | * @buffer: The PurpleCircularBuffer to which to append the data |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35071
diff
changeset
|
72 | * @src: pointer to the data to copy into the buffer |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35071
diff
changeset
|
73 | * @len: number of bytes to copy into the buffer |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
74 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
75 | * Append data to the PurpleCircularBuffer. This will grow the internal |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
76 | * buffer to fit the added data, if needed. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
77 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
78 | * Since: 3.0.0 |
| 13201 | 79 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
80 | PURPLE_AVAILABLE_IN_3_0 |
|
38715
98d5a19c04a9
Fix inconsistent parameter names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37094
diff
changeset
|
81 | void purple_circular_buffer_append(PurpleCircularBuffer *buffer, gconstpointer src, gsize len); |
| 13201 | 82 | |
| 83 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
84 | * purple_circular_buffer_get_max_read: |
|
38715
98d5a19c04a9
Fix inconsistent parameter names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37094
diff
changeset
|
85 | * @buffer: the PurpleCircularBuffer for which to determine the maximum |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
86 | * contiguous bytes that can be read. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
87 | * |
| 13201 | 88 | * Determine the maximum number of contiguous bytes that can be read from the |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
89 | * PurpleCircularBuffer. |
| 13201 | 90 | * Note: This may not be the total number of bytes that are buffered - a |
| 35057 | 91 | * subsequent call after calling purple_circular_buffer_mark_read() may indicate |
| 92 | * more data is available to read. | |
| 13201 | 93 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35071
diff
changeset
|
94 | * Returns: the number of bytes that can be read from the PurpleCircularBuffer |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
95 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
96 | * Since: 3.0.0 |
| 13201 | 97 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
98 | PURPLE_AVAILABLE_IN_3_0 |
|
39380
3088866c22f4
libpurple: Port almost self-contained code from g_type_class_add_private()
Mike Ruprecht <cmaiku@gmail.com>
parents:
38715
diff
changeset
|
99 | gsize purple_circular_buffer_get_max_read(PurpleCircularBuffer *buffer); |
| 13201 | 100 | |
| 101 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
102 | * purple_circular_buffer_mark_read: |
|
38715
98d5a19c04a9
Fix inconsistent parameter names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37094
diff
changeset
|
103 | * @buffer: The PurpleCircularBuffer to mark bytes read from |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35071
diff
changeset
|
104 | * @len: The number of bytes to mark as read |
| 13201 | 105 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
106 | * Mark the number of bytes that have been read from the buffer. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
107 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35071
diff
changeset
|
108 | * Returns: TRUE if we successfully marked the bytes as having been read, FALSE |
| 13201 | 109 | * otherwise. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
110 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
111 | * Since: 3.0.0 |
| 13201 | 112 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
113 | PURPLE_AVAILABLE_IN_3_0 |
|
38715
98d5a19c04a9
Fix inconsistent parameter names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37094
diff
changeset
|
114 | gboolean purple_circular_buffer_mark_read(PurpleCircularBuffer *buffer, gsize len); |
|
34529
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
115 | |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
116 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
117 | * purple_circular_buffer_grow: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
118 | * @buffer: The PurpleCircularBuffer to grow. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
119 | * @len: The number of bytes the buffer should be able to hold. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
120 | * |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
121 | * Increases the buffer size by a multiple of grow size, so that it can hold at |
|
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
122 | * least 'len' bytes. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
123 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
124 | * Since: 3.0.0 |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
125 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
126 | PURPLE_AVAILABLE_IN_3_0 |
|
34529
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
127 | void purple_circular_buffer_grow(PurpleCircularBuffer *buffer, gsize len); |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
128 | |
|
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
129 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
130 | * purple_circular_buffer_get_grow_size: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
131 | * @buffer: The PurpleCircularBuffer from which to get grow size. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
132 | * |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
133 | * Returns the number of bytes by which the buffer grows when more space is |
|
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
134 | * needed. |
|
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
135 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35071
diff
changeset
|
136 | * Returns: The grow size of the buffer. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
137 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
138 | * Since: 3.0.0 |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
139 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
140 | PURPLE_AVAILABLE_IN_3_0 |
|
39380
3088866c22f4
libpurple: Port almost self-contained code from g_type_class_add_private()
Mike Ruprecht <cmaiku@gmail.com>
parents:
38715
diff
changeset
|
141 | gsize purple_circular_buffer_get_grow_size(PurpleCircularBuffer *buffer); |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
142 | |
|
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
143 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
144 | * purple_circular_buffer_get_used: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
145 | * @buffer: The PurpleCircularBuffer from which to get used count. |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
146 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
147 | * Returns the number of bytes of this buffer that contain unread data. |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
148 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35071
diff
changeset
|
149 | * Returns: The number of bytes that contain unread data. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
150 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
151 | * Since: 3.0.0 |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
152 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
153 | PURPLE_AVAILABLE_IN_3_0 |
|
39380
3088866c22f4
libpurple: Port almost self-contained code from g_type_class_add_private()
Mike Ruprecht <cmaiku@gmail.com>
parents:
38715
diff
changeset
|
154 | gsize purple_circular_buffer_get_used(PurpleCircularBuffer *buffer); |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
155 | |
|
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
156 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
157 | * purple_circular_buffer_get_output: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
158 | * @buffer: The PurpleCircularBuffer from which to get the output pointer. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
159 | * |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
160 | * Returns the output pointer of the buffer, where unread data is available. |
|
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
161 | * Use purple_circular_buffer_get_max_read() to determine the number of |
|
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
162 | * contiguous bytes that can be read from this output. After reading the data, |
|
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
163 | * call purple_circular_buffer_mark_read() to mark the retrieved data as read. |
|
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
164 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35071
diff
changeset
|
165 | * Returns: The output pointer for the buffer. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
166 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
167 | * Since: 3.0.0 |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
168 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
169 | PURPLE_AVAILABLE_IN_3_0 |
|
39380
3088866c22f4
libpurple: Port almost self-contained code from g_type_class_add_private()
Mike Ruprecht <cmaiku@gmail.com>
parents:
38715
diff
changeset
|
170 | const gchar *purple_circular_buffer_get_output(PurpleCircularBuffer *buffer); |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
171 | |
|
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
172 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
173 | * purple_circular_buffer_reset: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
174 | * @buffer: The PurpleCircularBuffer to reset. |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
175 | * |
|
39975
f691f3812205
Add some unit tests for the circular buffer.. they're not great, was just trying to test somethings
Gary Kramlich <grim@reaperworld.com>
parents:
39380
diff
changeset
|
176 | * Resets the buffer input and output pointers to the start of the buffer. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
177 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
178 | * Since: 3.0.0 |
|
35071
1eedcfcb91ef
Added doc comments for new PurpleCircularBuffer functions. Removed purple_circular_buffer_get_input from public API.
Ankit Vani <a@nevitus.org>
parents:
35057
diff
changeset
|
179 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41686
diff
changeset
|
180 | PURPLE_AVAILABLE_IN_3_0 |
|
34529
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
181 | void purple_circular_buffer_reset(PurpleCircularBuffer *buffer); |
| 13201 | 182 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20147
diff
changeset
|
183 | G_END_DECLS |
| 13201 | 184 | |
|
34529
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
185 | #endif /* PURPLE_CIRCULAR_BUFFER_H */ |
|
68cf25486001
GObjectify PurpleCircBuffer as PurpleCircularBuffer (from gobjectification branch)
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
186 |