libpurple/group.h

Thu, 22 Feb 2024 06:03:16 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Thu, 22 Feb 2024 06:03:16 -0600
changeset 42596
b64b96f3b781
parent 42594
eddde70cedd8
child 42612
d905313bc732
permissions
-rw-r--r--

Add a favorite property to PurpleContactInfo

This will be used in the future for toggling whether or not contacts are
favorited or starred.

Testing Done:
Ran the unit tests under valgrind.

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

42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42557
diff changeset
1 /*
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42557
diff changeset
2 * Purple - Internet Messaging Library
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42557
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 *
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * Purple is the legal property of its developers, whose names are too numerous
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42557
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * source distribution.
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42557
diff changeset
9 * This library is free software; you can redistribute it and/or modify it
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42557
diff changeset
10 * under the terms of the GNU General Public License as published by the Free
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42557
diff changeset
11 * Software Foundation; either version 2 of the License, or (at your option)
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42557
diff changeset
12 * any later version.
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42557
diff changeset
14 * This library is distributed in the hope that it will be useful, but WITHOUT
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42557
diff changeset
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42557
diff changeset
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42557
diff changeset
17 * more details.
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42557
diff changeset
19 * You should have received a copy of the GNU General Public License along with
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42557
diff changeset
20 * this library; if not, see <https://www.gnu.org/licenses/>.
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 */
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22
40474
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40350
diff changeset
23 #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: 40350
diff changeset
24 # 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: 40350
diff changeset
25 #endif
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40350
diff changeset
26
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 #ifndef PURPLE_GROUP_H
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28 #define PURPLE_GROUP_H
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29
37945
49ac171ebe26 move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents: 37944
diff changeset
30 #include "countingnode.h"
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32 #define PURPLE_TYPE_GROUP (purple_group_get_type())
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33 #define PURPLE_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_GROUP, PurpleGroup))
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34 #define PURPLE_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_GROUP, PurpleGroupClass))
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35 #define PURPLE_IS_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_GROUP))
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 #define PURPLE_IS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_GROUP))
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
37 #define PURPLE_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_GROUP, PurpleGroupClass))
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 typedef struct _PurpleGroup PurpleGroup;
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 typedef struct _PurpleGroupClass PurpleGroupClass;
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41
42344
c51d37734155 Rename account.[ch] to purpleaccount.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 41208
diff changeset
42 #include "purpleaccount.h"
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
43 #include "purpleversion.h"
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 /**************************************************************************/
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46 /* Data Structures */
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 /**************************************************************************/
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48
42415
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
49 /**
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 * PurpleGroup:
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 *
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 * A group on the buddy list.
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53 *
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54 * A group is a counting node, which means it keeps track of the counts of the
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 * chats and contacts under this group.
42415
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
56 *
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
57 * Since: 2.0.0
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 */
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59 struct _PurpleGroup {
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
60 PurpleCountingNode counting;
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61 };
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63 struct _PurpleGroupClass {
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 PurpleCountingNodeClass counting_class;
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66 /*< private >*/
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
67 void (*_purple_reserved1)(void);
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68 void (*_purple_reserved2)(void);
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
69 void (*_purple_reserved3)(void);
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
70 void (*_purple_reserved4)(void);
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
71 };
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
72
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
73 G_BEGIN_DECLS
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
74
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75 /**************************************************************************/
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
76 /* Group API */
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
77 /**************************************************************************/
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
78
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79 /**
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
80 * purple_group_get_type:
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
81 *
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
82 * Returns: The #GType for the #PurpleGroup object.
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
83 *
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
84 * Since: 3.0.0
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
85 */
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
86 PURPLE_AVAILABLE_IN_3_0
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
87 GType purple_group_get_type(void);
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
88
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
89 /**
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
90 * purple_group_new:
42415
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
91 * @name: The name of the new group
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
92 *
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
93 * Creates a new group
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
94 *
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
95 * You can't have more than one group with the same name. Sorry. If you pass
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
96 * this the name of a group that already exists, it will return that group.
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
97 *
42415
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
98 * Returns: A new group struct
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
99 *
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
100 * Since: 2.0.0
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
101 */
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
102 PURPLE_AVAILABLE_IN_ALL
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
103 PurpleGroup *purple_group_new(const char *name);
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
104
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
105 /**
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
106 * purple_group_get_accounts:
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
107 * @g: The group
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
108 *
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
109 * Returns a list of accounts that have buddies in this group
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
110 *
38716
b9bed228745a Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38552
diff changeset
111 * Returns: (element-type PurpleAccount) (transfer container): A list of
b9bed228745a Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38552
diff changeset
112 * accounts, or %NULL if the group has no accounts.
42415
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
113 *
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
114 * Since: 2.0.0
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
115 */
42415
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
116 PURPLE_AVAILABLE_IN_ALL
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
117 GSList *purple_group_get_accounts(PurpleGroup *g);
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
118
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
119 /**
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
120 * purple_group_on_account:
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
121 * @g: The group to search through.
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
122 * @account: The account.
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
123 *
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
124 * Determines whether an account owns any buddies in a given group
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
125 *
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
126 * Returns: TRUE if there are any buddies in the group, or FALSE otherwise.
42415
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
127 *
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
128 * Since: 2.0.0
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
129 */
42415
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
130 PURPLE_AVAILABLE_IN_ALL
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
131 gboolean purple_group_on_account(PurpleGroup *g, PurpleAccount *account);
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
132
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
133 /**
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
134 * purple_group_set_name:
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
135 * @group: The group.
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
136 * @name: The name of the group.
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
137 *
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
138 * Sets the name of a group.
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
139 *
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
140 * Since: 3.0.0
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
141 */
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
142 PURPLE_AVAILABLE_IN_3_0
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
143 void purple_group_set_name(PurpleGroup *group, const char *name);
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
144
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
145 /**
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
146 * purple_group_get_name:
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
147 * @group: The group.
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
148 *
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
149 * Returns the name of a group.
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
150 *
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
151 * Returns: The name of the group.
42415
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
152 *
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
153 * Since: 2.0.0
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
154 */
42415
561a6ccf39c6 Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
155 PURPLE_AVAILABLE_IN_ALL
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
156 const char *purple_group_get_name(PurpleGroup *group);
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
157
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
158 G_END_DECLS
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
159
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
160 #endif /* PURPLE_GROUP_H */
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
161

mercurial