libpurple/countingnode.h

Tue, 24 Oct 2023 01:04:19 -0500

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Tue, 24 Oct 2023 01:04:19 -0500
changeset 42388
e0f4a672f85d
parent 42387
d9350cda1556
child 42391
090b03385984
permissions
-rw-r--r--

Add symbol visibility for symbols tagged with Since: 2.x

These are _only_ symbols that already have `Since: 2.x.y`.

Testing Done:
Compiled, mostly.

Bugs closed: PIDGIN-17838

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

37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /* purple
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Purple is the legal property of its developers, whose names are too numerous
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 * to list here. Please refer to the COPYRIGHT file distributed with this
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * source distribution.
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * (at your option) any later version.
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * GNU General Public License for more details.
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 * along with this program; if not, write to the Free Software
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 */
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21
40474
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40215
diff changeset
22 #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: 40215
diff changeset
23 # 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: 40215
diff changeset
24 #endif
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40215
diff changeset
25
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 #ifndef PURPLE_COUNTING_NODE_H
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 #define PURPLE_COUNTING_NODE_H
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29 #include <glib.h>
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 #include <glib-object.h>
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32 #include "blistnode.h"
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41200
diff changeset
33 #include "purpleversion.h"
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35 #define PURPLE_TYPE_COUNTING_NODE (purple_counting_node_get_type())
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 #define PURPLE_COUNTING_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_COUNTING_NODE, PurpleCountingNode))
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
37 #define PURPLE_COUNTING_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_COUNTING_NODE, PurpleCountingNodeClass))
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38 #define PURPLE_IS_COUNTING_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_COUNTING_NODE))
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 #define PURPLE_IS_COUNTING_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_COUNTING_NODE))
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 #define PURPLE_COUNTING_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_COUNTING_NODE, PurpleCountingNodeClass))
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 typedef struct _PurpleCountingNode PurpleCountingNode;
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
43 typedef struct _PurpleCountingNodeClass PurpleCountingNodeClass;
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 /**
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46 * PurpleCountingNode:
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 * A node that keeps count of the number of children that it has. It tracks the
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 * total number of children, the number of children corresponding to online
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 * accounts, and the number of online children.
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 * The two types of counting nodes are:
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53 * <orderedlist>
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54 * <listitem>Contact: Keeps track of the number of buddies under it.</listitem>
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 * <listitem>Group: Keeps track of the number of chats and contacts under it.
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56 * </listitem>
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
57 * </orderedlist>
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59 * See #PurpleContact, #PurpleGroup
40215
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
60 *
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
61 * Since: 3.0.0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62 */
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63 struct _PurpleCountingNode {
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 PurpleBlistNode node;
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65 };
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
67 struct _PurpleCountingNodeClass {
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68 PurpleBlistNodeClass node_class;
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
69
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
70 /*< private >*/
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
71 void (*_purple_reserved1)(void);
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
72 void (*_purple_reserved2)(void);
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
73 void (*_purple_reserved3)(void);
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
74 void (*_purple_reserved4)(void);
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75 };
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
76
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
77 G_BEGIN_DECLS
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
78
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79 /**
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
80 * purple_counting_node_get_type:
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
81 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
82 * Returns: The #GType for the #PurpleCountingNode object.
40215
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
83 *
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
84 * Since: 3.0.0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
85 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41200
diff changeset
86 PURPLE_AVAILABLE_IN_3_0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
87 GType purple_counting_node_get_type(void);
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
88
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
89 /**
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
90 * purple_counting_node_get_total_size:
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
91 * @counter: The node
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
92 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
93 * Returns the total number of children of the counting node.
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
94 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
95 * Returns: The total number of children of the node
40215
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
96 *
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
97 * Since: 3.0.0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
98 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41200
diff changeset
99 PURPLE_AVAILABLE_IN_3_0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
100 int purple_counting_node_get_total_size(PurpleCountingNode *counter);
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
101
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
102 /**
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
103 * purple_counting_node_get_current_size:
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
104 * @counter: The node
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
105 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
106 * Returns the number of children of the counting node corresponding to online
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
107 * accounts.
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
108 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
109 * Returns: The number of children with online accounts
40215
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
110 *
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
111 * Since: 3.0.0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
112 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41200
diff changeset
113 PURPLE_AVAILABLE_IN_3_0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
114 int purple_counting_node_get_current_size(PurpleCountingNode *counter);
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
115
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
116 /**
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
117 * purple_counting_node_get_online_count:
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
118 * @counter: The node
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
119 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
120 * Returns the number of children of the counting node that are online.
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
121 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
122 * Returns: The total number of online children
40215
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
123 *
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
124 * Since: 3.0.0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
125 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41200
diff changeset
126 PURPLE_AVAILABLE_IN_3_0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
127 int purple_counting_node_get_online_count(PurpleCountingNode *counter);
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
128
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
129 /**
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
130 * purple_counting_node_change_total_size:
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
131 * @counter: The node
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
132 * @delta: The value to change the total size by
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
133 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
134 * Changes the total number of children of the counting node. The provided
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
135 * delta value is added to the count, or if it's negative, the count is
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
136 * decreased.
40215
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
137 *
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
138 * Since: 3.0.0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
139 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41200
diff changeset
140 PURPLE_AVAILABLE_IN_3_0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
141 void purple_counting_node_change_total_size(PurpleCountingNode *counter, int delta);
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
142
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
143 /**
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
144 * purple_counting_node_change_current_size:
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
145 * @counter: The node
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
146 * @delta: The value to change the current size by
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
147 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
148 * Changes the number of children of the counting node corresponding to online
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
149 * accounts. The provided delta value is added to the count, or if it's
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
150 * negative, the count is decreased.
40215
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
151 *
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
152 * Since: 3.0.0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
153 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41200
diff changeset
154 PURPLE_AVAILABLE_IN_3_0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
155 void purple_counting_node_change_current_size(PurpleCountingNode *counter, int delta);
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
156
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
157 /**
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
158 * purple_counting_node_change_online_count:
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
159 * @counter: The node
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
160 * @delta: The value to change the online count by
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
161 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
162 * Changes the number of children of the counting node that are online. The
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
163 * provided delta value is added to the count, or if it's negative, the count is
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
164 * decreased.
40215
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
165 *
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
166 * Since: 3.0.0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
167 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41200
diff changeset
168 PURPLE_AVAILABLE_IN_3_0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
169 void purple_counting_node_change_online_count(PurpleCountingNode *counter, int delta);
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
170
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
171 /**
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
172 * purple_counting_node_set_total_size:
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
173 * @counter: The node
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
174 * @totalsize: The total number of children of the node
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
175 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
176 * Sets the total number of children of the counting node.
40215
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
177 *
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
178 * Since: 3.0.0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
179 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41200
diff changeset
180 PURPLE_AVAILABLE_IN_3_0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
181 void purple_counting_node_set_total_size(PurpleCountingNode *counter, int totalsize);
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
182
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
183 /**
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
184 * purple_counting_node_set_current_size:
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
185 * @counter: The node
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
186 * @currentsize: The number of children with online accounts
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
187 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
188 * Sets the number of children of the counting node corresponding to online
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
189 * accounts.
40215
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
190 *
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
191 * Since: 3.0.0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
192 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41200
diff changeset
193 PURPLE_AVAILABLE_IN_3_0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
194 void purple_counting_node_set_current_size(PurpleCountingNode *counter, int currentsize);
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
195
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
196 /**
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
197 * purple_counting_node_set_online_count:
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
198 * @counter: The node
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
199 * @onlinecount: The total number of online children
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
200 *
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
201 * Sets the number of children of the counting node that are online.
40215
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
202 *
f7cf821e15de Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
203 * Since: 3.0.0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
204 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41200
diff changeset
205 PURPLE_AVAILABLE_IN_3_0
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
206 void purple_counting_node_set_online_count(PurpleCountingNode *counter, int onlinecount);
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
207
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
208 G_END_DECLS
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
209
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
210 #endif /* PURPLE_COUNTING_NODE_H */

mercurial