Sun, 21 Jun 2020 04:16:15 -0500
Make it so only libpurple can directly include libpurple header files.
This is part of our on going effort to make it easier to develop against libpurple as well as making our filenames not part of our api.
Make it so only libpurple can directly include libpurple header files.
Testing Done:
Just a normal compile to make sure everything builds again.
Reviewed at https://reviews.imfreedom.org/r/8/
|
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 | /** |
|
37949
87d2c1513e5b
Clean up some documentation comments
Gary Kramlich <grim@reaperworld.com>
parents:
37945
diff
changeset
|
29 | * SECTION:countingnode |
|
87d2c1513e5b
Clean up some documentation comments
Gary Kramlich <grim@reaperworld.com>
parents:
37945
diff
changeset
|
30 | * @section_id: libpurple-countingnode |
|
87d2c1513e5b
Clean up some documentation comments
Gary Kramlich <grim@reaperworld.com>
parents:
37945
diff
changeset
|
31 | * @short_description: <filename>countingnode.h</filename> |
|
87d2c1513e5b
Clean up some documentation comments
Gary Kramlich <grim@reaperworld.com>
parents:
37945
diff
changeset
|
32 | * @title: CountingNode Object |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | */ |
|
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 | #include <glib.h> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | #include <glib-object.h> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | #include "blistnode.h" |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | #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
|
41 | #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
|
42 | #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
|
43 | #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
|
44 | #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
|
45 | #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
|
46 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | typedef struct _PurpleCountingNode PurpleCountingNode; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
48 | typedef struct _PurpleCountingNodeClass PurpleCountingNodeClass; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | * PurpleCountingNode: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | * 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
|
54 | * 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
|
55 | * accounts, and the number of online children. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
56 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | * The two types of counting nodes are: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | * <orderedlist> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | * <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
|
60 | * <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
|
61 | * </listitem> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | * </orderedlist> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | * 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
|
65 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
66 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
68 | struct _PurpleCountingNode { |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
69 | PurpleBlistNode node; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
70 | }; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | struct _PurpleCountingNodeClass { |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
73 | PurpleBlistNodeClass node_class; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
74 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
75 | /*< private >*/ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
76 | void (*_purple_reserved1)(void); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | void (*_purple_reserved2)(void); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | void (*_purple_reserved3)(void); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
79 | void (*_purple_reserved4)(void); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
80 | }; |
|
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 | G_BEGIN_DECLS |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
83 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
84 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
85 | * purple_counting_node_get_type: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
86 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
87 | * 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
|
88 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
89 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
90 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
91 | GType purple_counting_node_get_type(void); |
|
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 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
94 | * purple_counting_node_get_total_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
95 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
96 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
97 | * 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
|
98 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
99 | * 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
|
100 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
101 | * Since: 3.0.0 |
|
37945
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 | 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
|
104 | |
|
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 | * purple_counting_node_get_current_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
107 | * @counter: The node |
|
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 of the counting node corresponding to online |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
110 | * accounts. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
111 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
112 | * 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
|
113 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
114 | * Since: 3.0.0 |
|
37945
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 | 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
|
117 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
118 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
119 | * purple_counting_node_get_online_count: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
120 | * @counter: The node |
|
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 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
|
123 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
124 | * 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
|
125 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
126 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
127 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
128 | 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
|
129 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
130 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
131 | * purple_counting_node_change_total_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
132 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
133 | * @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
|
134 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
135 | * 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
|
136 | * 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
|
137 | * decreased. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
138 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
139 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
140 | */ |
|
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 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
154 | 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
|
155 | |
|
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 | * purple_counting_node_change_online_count: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
158 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
159 | * @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
|
160 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
161 | * 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
|
162 | * 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
|
163 | * decreased. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
164 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
165 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
166 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
167 | 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
|
168 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
169 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
170 | * purple_counting_node_set_total_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
171 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
172 | * @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
|
173 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
174 | * 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
|
175 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
176 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
177 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
178 | 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
|
179 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
180 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
181 | * purple_counting_node_set_current_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
182 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
183 | * @currentsize: The number of children with online accounts |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
184 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
185 | * 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
|
186 | * accounts. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
187 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
188 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
189 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
190 | 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
|
191 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
192 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
193 | * purple_counting_node_set_online_count: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
194 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
195 | * @onlinecount: The total number of online children |
|
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 | * 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
|
198 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
199 | * Since: 3.0.0 |
|
37945
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 | 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
|
202 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
203 | G_END_DECLS |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
204 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
205 | #endif /* PURPLE_COUNTING_NODE_H */ |