Thu, 26 Oct 2023 06:16:29 -0500
Make sure all of the chat API is marked with the proper version
I compared these against a checkout of the v2.0.0 tag and using the girlint
stylesheet to verify.
Testing Done:
Asked the turtles for help.
Bugs closed: PIDGIN-17838
Reviewed at https://reviews.imfreedom.org/r/2727/
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* purple |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * |
|
12ce09a23094
Move PurpleChat 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 |
|
12ce09a23094
Move PurpleChat 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 |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * source distribution. |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * |
|
12ce09a23094
Move PurpleChat 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 |
|
12ce09a23094
Move PurpleChat 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 |
|
12ce09a23094
Move PurpleChat 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 |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * (at your option) any later version. |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * |
|
12ce09a23094
Move PurpleChat 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, |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * GNU General Public License for more details. |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * |
|
12ce09a23094
Move PurpleChat 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 |
|
12ce09a23094
Move PurpleChat 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 |
|
12ce09a23094
Move PurpleChat 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 |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | */ |
|
12ce09a23094
Move PurpleChat 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:
39738
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:
39738
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:
39738
diff
changeset
|
24 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
39738
diff
changeset
|
25 | |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | #ifndef PURPLE_CHAT_H |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
27 | #define PURPLE_CHAT_H |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | #define PURPLE_TYPE_CHAT (purple_chat_get_type()) |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | #define PURPLE_CHAT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_CHAT, PurpleChat)) |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | #define PURPLE_CHAT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_CHAT, PurpleChatClass)) |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | #define PURPLE_IS_CHAT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_CHAT)) |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | #define PURPLE_IS_CHAT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_CHAT)) |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | #define PURPLE_CHAT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_CHAT, PurpleChatClass)) |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | typedef struct _PurpleChat PurpleChat; |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | typedef struct _PurpleChatClass PurpleChatClass; |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | #include "blistnode.h" |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | #include "group.h" |
|
42344
c51d37734155
Rename account.[ch] to purpleaccount.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
41 | #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
|
42 | #include "purpleversion.h" |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | /** |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
45 | * PurpleChat: |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
46 | * |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | * A chat on the buddy list. |
|
42428
153015687b87
Make sure all of the chat API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42397
diff
changeset
|
48 | * |
|
153015687b87
Make sure all of the chat API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42397
diff
changeset
|
49 | * Since: 2.0.0 |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | */ |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | struct _PurpleChat { |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | PurpleBlistNode node; |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | }; |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
55 | struct _PurpleChatClass { |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
56 | PurpleBlistNodeClass node_class; |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | /*< private >*/ |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | void (*_purple_reserved1)(void); |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
60 | void (*_purple_reserved2)(void); |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
61 | void (*_purple_reserved3)(void); |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | void (*_purple_reserved4)(void); |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | }; |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | G_BEGIN_DECLS |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | /** |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
68 | * purple_chat_get_type: |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
69 | * |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
70 | * Returns: The #GType for the #PurpleChat 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
|
71 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
72 | * Since: 3.0.0 |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
73 | */ |
|
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
|
74 | PURPLE_AVAILABLE_IN_3_0 |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
75 | GType purple_chat_get_type(void); |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
76 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | /** |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | * purple_chat_new: |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
79 | * @account: The account this chat will get added to |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
80 | * @alias: The alias of the new chat |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
81 | * @components: The info the protocol needs to join the chat. The |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
82 | * hash function should be g_str_hash() and the |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
83 | * equal function should be g_str_equal(). |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
84 | * |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
85 | * Creates a new chat for the buddy list |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
86 | * |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
87 | * Returns: A newly allocated chat |
|
42428
153015687b87
Make sure all of the chat API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42397
diff
changeset
|
88 | * |
|
153015687b87
Make sure all of the chat API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42397
diff
changeset
|
89 | * Since: 2.0.0 |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
90 | */ |
|
42428
153015687b87
Make sure all of the chat API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42397
diff
changeset
|
91 | PURPLE_AVAILABLE_IN_ALL |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
92 | PurpleChat *purple_chat_new(PurpleAccount *account, const char *alias, GHashTable *components); |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
93 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
94 | /** |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
95 | * purple_chat_get_name: |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
96 | * @chat: The chat whose name will be returned. |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
97 | * |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
98 | * Returns the correct name to display for a blist chat. |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
99 | * |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
100 | * Returns: The alias (if set), or first component value. |
|
42428
153015687b87
Make sure all of the chat API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42397
diff
changeset
|
101 | * |
|
153015687b87
Make sure all of the chat API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42397
diff
changeset
|
102 | * Since: 2.0.0 |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
103 | */ |
|
42428
153015687b87
Make sure all of the chat API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42397
diff
changeset
|
104 | PURPLE_AVAILABLE_IN_ALL |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
105 | const char *purple_chat_get_name(PurpleChat *chat); |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
106 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
107 | /** |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
108 | * purple_chat_get_name_only: |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
109 | * @chat: The chat whose name will be returned. |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
110 | * |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
111 | * Returns the name of the chat |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
112 | * |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
113 | * Returns: The first component value. |
|
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
|
114 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
115 | * Since: 3.0.0 |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
116 | */ |
|
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
|
117 | PURPLE_AVAILABLE_IN_3_0 |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
118 | const char *purple_chat_get_name_only(PurpleChat *chat); |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
119 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
120 | /** |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
121 | * purple_chat_set_alias: |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
122 | * @chat: The chat |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
123 | * @alias: The alias |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
124 | * |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
125 | * Sets the alias for a blist chat. |
|
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
|
126 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
127 | * Since: 3.0.0 |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
128 | */ |
|
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
|
129 | PURPLE_AVAILABLE_IN_3_0 |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
130 | void purple_chat_set_alias(PurpleChat *chat, const char *alias); |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
131 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
132 | /** |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
133 | * purple_chat_get_group: |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
134 | * @chat: The chat. |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
135 | * |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
136 | * Returns the group of which the chat is a member. |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
137 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38016
diff
changeset
|
138 | * Returns: (transfer none): The parent group, or %NULL if the chat is not in a |
|
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38016
diff
changeset
|
139 | * group. |
|
42428
153015687b87
Make sure all of the chat API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42397
diff
changeset
|
140 | * |
|
153015687b87
Make sure all of the chat API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42397
diff
changeset
|
141 | * Since: 2.0.0 |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
142 | */ |
|
42428
153015687b87
Make sure all of the chat API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42397
diff
changeset
|
143 | PURPLE_AVAILABLE_IN_ALL |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
144 | PurpleGroup *purple_chat_get_group(PurpleChat *chat); |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
145 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
146 | /** |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
147 | * purple_chat_get_account: |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
148 | * @chat: The chat. |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
149 | * |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
150 | * Returns the account the chat belongs to. |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
151 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38016
diff
changeset
|
152 | * Returns: (transfer none): The account the chat belongs to. |
|
42397
dc6563055e80
Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42391
diff
changeset
|
153 | * |
|
dc6563055e80
Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42391
diff
changeset
|
154 | * Since: 2.4.0 |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
155 | */ |
|
42397
dc6563055e80
Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42391
diff
changeset
|
156 | PURPLE_AVAILABLE_IN_2_4 |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
157 | PurpleAccount *purple_chat_get_account(PurpleChat *chat); |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
158 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
159 | /** |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
160 | * purple_chat_get_components: |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
161 | * @chat: The chat. |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
162 | * |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
163 | * Get a hashtable containing information about a chat. |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
164 | * |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
165 | * Returns: (transfer none): The hashtable. |
|
42397
dc6563055e80
Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42391
diff
changeset
|
166 | * |
|
dc6563055e80
Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42391
diff
changeset
|
167 | * Since: 2.4.0 |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
168 | */ |
|
42397
dc6563055e80
Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42391
diff
changeset
|
169 | PURPLE_AVAILABLE_IN_2_4 |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
170 | GHashTable *purple_chat_get_components(PurpleChat *chat); |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
171 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
172 | G_END_DECLS |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
173 | |
|
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
174 | #endif /* PURPLE_CHAT_H */ |