libpurple/server.h

Sun, 10 Oct 2021 02:52:05 -0500

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Sun, 10 Oct 2021 02:52:05 -0500
changeset 41083
590d533cf290
parent 40885
87f6241da196
child 41176
7d51cf02f98a
permissions
-rw-r--r--

Fix several typos in libpurple

Ran `codespell -w`, ignoring some stuff, or making things better.

Testing Done:
Compile only.

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

40584
6f198a69ac48 A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 40579
diff changeset
1 /*
6f198a69ac48 A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 40579
diff changeset
2 * Purple - Internet Messaging Library
6f198a69ac48 A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 40579
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
5872
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
4 *
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
5 * Purple is the legal property of its developers, whose names are too numerous
8046
c581b20a47d6 [gaim-migrate @ 8730]
Sean Egan <seanegan@pidgin.im>
parents: 7118
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
c581b20a47d6 [gaim-migrate @ 8730]
Sean Egan <seanegan@pidgin.im>
parents: 7118
diff changeset
7 * source distribution.
6787
7d8e0ba98f68 [gaim-migrate @ 7326]
Christian Hammond <chipx86@chipx86.com>
parents: 6695
diff changeset
8 *
5872
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or modify
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
10 * it under the terms of the GNU General Public License as published by
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
12 * (at your option) any later version.
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
13 *
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
17 * GNU General Public License for more details.
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
18 *
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
40584
6f198a69ac48 A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 40579
diff changeset
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
5872
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
21 */
35487
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35473
diff changeset
22
40474
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 39738
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: 39738
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: 39738
diff changeset
25 #endif
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 39738
diff changeset
26
39659
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38859
diff changeset
27 #ifndef PURPLE_SERVER_H
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38859
diff changeset
28 #define PURPLE_SERVER_H
40584
6f198a69ac48 A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 40579
diff changeset
29
35442
84e906df98dd Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents: 35402
diff changeset
30 /**
84e906df98dd Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents: 35402
diff changeset
31 * SECTION:server
84e906df98dd Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents: 35402
diff changeset
32 * @section_id: libpurple-server
84e906df98dd Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents: 35402
diff changeset
33 * @short_description: <filename>server.h</filename>
84e906df98dd Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents: 35402
diff changeset
34 * @title: Server API
40584
6f198a69ac48 A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 40579
diff changeset
35 *
6f198a69ac48 A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 40579
diff changeset
36 * The server API is used by protocol plugins to tell libpurple when certain
6f198a69ac48 A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 40579
diff changeset
37 * things have happened.
35442
84e906df98dd Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents: 35402
diff changeset
38 */
5872
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
39
34605
89e6c5346d63 Begun refactoring for PurpleConversation
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
40 #include "accounts.h"
89e6c5346d63 Begun refactoring for PurpleConversation
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
41 #include "conversations.h"
37944
e42e19eba593 Pull PurpleGroup out into it's own files
Gary Kramlich <grim@reaperworld.com>
parents: 37162
diff changeset
42 #include "group.h"
36782
64936dae41a3 Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents: 36691
diff changeset
43 #include "protocols.h"
40579
882884b9bc97 Split PurpleAttentionType and PurpleProtocolAttention into their own files
Gary Kramlich <grim@reaperworld.com>
parents: 40521
diff changeset
44 #include "purpleattentiontype.h"
40885
87f6241da196 Update purple_conversations_find_* to return PurpleConversations instead of subclasses
Gary Kramlich <grim@reaperworld.com>
parents: 40696
diff changeset
45 #include "purpleimconversation.h"
40696
cf58ec89b1e4 Rename message.[ch] to purplemessage.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40584
diff changeset
46 #include "purplemessage.h"
5872
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
47
32787
7072f190d6ad Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32301
diff changeset
48 G_BEGIN_DECLS
5944
f19df037ac58 [gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents: 5872
diff changeset
49
13844
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
50 /**
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
51 * purple_serv_send_typing:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
52 * @gc: The connection over which to send the typing notification.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
53 * @name: The user to send the typing notification to.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
54 * @state: One of PURPLE_IM_TYPING, PURPLE_IM_TYPED, or PURPLE_IM_NOT_TYPING.
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
55 *
13844
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
56 * Send a typing message to a given user over a given connection.
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
57 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
58 * Returns: A quiet-period, specified in seconds, where Purple will not
13844
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
59 * send any additional typing notification messages. Most
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
60 * protocols should return 0, which means that no additional
34670
9bd5bd903dc7 Renamed chat buddies to chat users, and IM conversation typing state to IM typing state.
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
61 * PURPLE_IM_TYPING messages need to be sent. If this is 5, for
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
62 * example, then Purple will wait five seconds, and if the Purple
34670
9bd5bd903dc7 Renamed chat buddies to chat users, and IM conversation typing state to IM typing state.
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
63 * user is still typing then Purple will send another PURPLE_IM_TYPING
13844
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
64 * message.
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
65 */
35473
b5427137c6d0 Remove @todo
Ankit Vani <a@nevitus.org>
parents: 35442
diff changeset
66 /* TODO Could probably move this into the conversation API. */
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
67 unsigned int purple_serv_send_typing(PurpleConnection *gc, const char *name, PurpleIMTypingState state);
13844
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
68
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
69 /**
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
70 * purple_serv_move_buddy:
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
71 * @buddy: The Buddy.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
72 * @orig: Original group.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
73 * @dest: Destiny group.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
74 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
75 * Move a buddy from one group to another on server.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
76 */
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
77 void purple_serv_move_buddy(PurpleBuddy *buddy, PurpleGroup *orig, PurpleGroup *dest);
13844
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
78
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
79 /**
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
80 * purple_serv_send_im:
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
81 * @gc: The connection over which to send the typing notification.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
82 * @msg: The message.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
83 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
84 * Sends the message to the user through the required protocol.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
85 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
86 * Returns: The error value returned from the protocol interface function.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
87 */
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
88 int purple_serv_send_im(PurpleConnection *gc, PurpleMessage *msg);
19639
93a56951f439 In the attention API, use the PURPLE_NOTIFY_MESSAGE flag to serv_got_im()
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 19604
diff changeset
89
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
90 /**
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
91 * purple_get_attention_type_from_code:
38024
437704dbfe17 doc fixes for server.h
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
92 * @account: The #PurpleAccount
437704dbfe17 doc fixes for server.h
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
93 * @type_code: The protocol specific attention type code to convert
25888
d0fdd378a635 Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents: 23875
diff changeset
94 *
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
95 * Get information about an account's attention commands, from the protocol.
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
96 *
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
97 * Returns: The attention command numbered 'code' from the protocol's attention_types, or NULL.
19639
93a56951f439 In the attention API, use the PURPLE_NOTIFY_MESSAGE flag to serv_got_im()
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 19604
diff changeset
98 */
93a56951f439 In the attention API, use the PURPLE_NOTIFY_MESSAGE flag to serv_got_im()
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 19604
diff changeset
99 PurpleAttentionType *purple_get_attention_type_from_code(PurpleAccount *account, guint type_code);
93a56951f439 In the attention API, use the PURPLE_NOTIFY_MESSAGE flag to serv_got_im()
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 19604
diff changeset
100
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
101 /**
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
102 * purple_serv_get_info:
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
103 * @gc: The connection over which to send the typing notification.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
104 * @name: The name of the buddy we were asking information from.
23875
d7e5f66cbfc9 Add purple_prpl_got_attention_in_chat, then deprecate
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23270
diff changeset
105 *
41083
590d533cf290 Fix several typos in libpurple
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40885
diff changeset
106 * Request user information from the server.
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
107 */
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
108 void purple_serv_get_info(PurpleConnection *gc, const char *name);
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
109
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
110 /**
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
111 * purple_serv_set_info:
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
112 * @gc: The connection over which to send the typing notification.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
113 * @info: Information text to be sent to the server.
19639
93a56951f439 In the attention API, use the PURPLE_NOTIFY_MESSAGE flag to serv_got_im()
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 19604
diff changeset
114 *
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
115 * Set user account information on the server.
19639
93a56951f439 In the attention API, use the PURPLE_NOTIFY_MESSAGE flag to serv_got_im()
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 19604
diff changeset
116 */
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
117 void purple_serv_set_info(PurpleConnection *gc, const char *info);
19639
93a56951f439 In the attention API, use the PURPLE_NOTIFY_MESSAGE flag to serv_got_im()
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 19604
diff changeset
118
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
119 /******************************************************************************
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
120 * Privacy interface
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
121 *****************************************************************************/
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
122
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
123 /**
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
124 * purple_serv_add_permit:
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
125 * @gc: The connection over which to send the typing notification.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
126 * @name: The name of the remote user.
23875
d7e5f66cbfc9 Add purple_prpl_got_attention_in_chat, then deprecate
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23270
diff changeset
127 *
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
128 * Add the buddy on the required authorized list.
19639
93a56951f439 In the attention API, use the PURPLE_NOTIFY_MESSAGE flag to serv_got_im()
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 19604
diff changeset
129 */
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
130 void purple_serv_add_permit(PurpleConnection *gc, const char *name);
19639
93a56951f439 In the attention API, use the PURPLE_NOTIFY_MESSAGE flag to serv_got_im()
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 19604
diff changeset
131
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
132 /**
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
133 * purple_serv_add_deny:
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
134 * @gc: The connection over which to send the typing notification.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
135 * @name: The name of the remote user.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
136 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
137 * Add the buddy on the required blocked list.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
138 */
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
139 void purple_serv_add_deny(PurpleConnection *gc, const char *name);
13844
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
140
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
141 /**
40521
c4269b37a13a Make PurpleProtocolPrivacy a proper GInterface and move it to it's own file
Gary Kramlich <grim@reaperworld.com>
parents: 40474
diff changeset
142 * purple_serv_remove_permit:
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
143 * @gc: The connection over which to send the typing notification.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
144 * @name: The name of the remote user.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
145 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
146 * Remove the buddy from the required authorized list.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
147 */
40521
c4269b37a13a Make PurpleProtocolPrivacy a proper GInterface and move it to it's own file
Gary Kramlich <grim@reaperworld.com>
parents: 40474
diff changeset
148 void purple_serv_remove_permit(PurpleConnection *gc, const char *name);
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
149
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
150 /**
40521
c4269b37a13a Make PurpleProtocolPrivacy a proper GInterface and move it to it's own file
Gary Kramlich <grim@reaperworld.com>
parents: 40474
diff changeset
151 * purple_serv_remove_deny:
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
152 * @gc: The connection over which to send the typing notification.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
153 * @name: The name of the remote user.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
154 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
155 * Remove the buddy from the required blocked list.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
156 */
40521
c4269b37a13a Make PurpleProtocolPrivacy a proper GInterface and move it to it's own file
Gary Kramlich <grim@reaperworld.com>
parents: 40474
diff changeset
157 void purple_serv_remove_deny(PurpleConnection *gc, const char *name);
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
158
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
159 /**
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
160 * purple_serv_set_permit_deny:
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
161 * @gc: The connection over which to send the typing notification.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
162 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
163 * Update the server with the privacy information on the permit and deny lists.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
164 */
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
165 void purple_serv_set_permit_deny(PurpleConnection *gc);
13844
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
166
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
167 /******************************************************************************
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
168 * Chat Interface
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
169 *****************************************************************************/
19639
93a56951f439 In the attention API, use the PURPLE_NOTIFY_MESSAGE flag to serv_got_im()
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 19604
diff changeset
170
22474
d08590a6660c This is part of a patch from felipec, also known as shx, that adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 20147
diff changeset
171 /**
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
172 * purple_serv_chat_invite
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
173 * @gc: The connection over which to send the typing notification.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
174 * @id: The id of the chat to invite the user to.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
175 * @message:A message displayed to the user when the invitation.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
176 * @name: The name of the remote user to send the invitation to.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
177 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
178 * Invite a user to join a chat.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
179 */
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
180 void purple_serv_chat_invite(PurpleConnection *gc, int id, const char *message, const char *name);
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
181
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
182 /**
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
183 * purple_serv_chat_leave:
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
184 * @gc: The connection over which to send the typing notification.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
185 * @id: The id of the chat to leave.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
186 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
187 * Called when the user requests leaving a chat.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
188 */
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
189 void purple_serv_chat_leave(PurpleConnection *gc, int id);
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
190
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
191 /**
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
192 * purple_serv_chat_send:
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
193 * @gc: The connection over which to send the typing notification.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
194 * @id: The id of the chat to send the message to.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
195 * @msg: The message to send to the chat.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
196 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
197 * Send a message to a chat.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
198 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
199 * This protocol function should return a positive value on
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
200 * success. If the message is too big to be sent, return
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
201 * <literal>-E2BIG</literal>. If the account is not connected,
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
202 * return <literal>-ENOTCONN</literal>. If the protocol is unable
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
203 * to send the message for another reason, return some other
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
204 * negative value. You can use one of the valid #errno values, or
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
205 * just big something.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
206 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
207 * Returns: A positive number or 0 in case of success, a
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
208 * negative error number in case of failure.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
209 */
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
210 int purple_serv_chat_send(PurpleConnection *gc, int id, PurpleMessage *msg);
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
211
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
212 /******************************************************************************
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
213 * Server Interface
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
214 *****************************************************************************/
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
215
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
216 /**
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
217 * purple_serv_alias_buddy:
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
218 * @buddy: The Buddy.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
219 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
220 * Save/store buddy's alias on server list/roster
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
221 */
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
222 void purple_serv_alias_buddy(PurpleBuddy *buddy);
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
223
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
224 /**
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
225 * purple_serv_got_alias:
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
226 * @gc: The connection over which to send the typing notification.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
227 * @who: The name of the buddy whose alias was received.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
228 * @alias: The alias that was received.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
229 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
230 * Protocol should call this function when it retrieves an alias form the server.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
231 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
232 */
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
233 void purple_serv_got_alias(PurpleConnection *gc, const char *who, const char *alias);
19639
93a56951f439 In the attention API, use the PURPLE_NOTIFY_MESSAGE flag to serv_got_im()
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 19604
diff changeset
234
22474
d08590a6660c This is part of a patch from felipec, also known as shx, that adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 20147
diff changeset
235 /**
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
236 * purple_serv_got_private_alias:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
237 * @gc: The connection on which the alias was received.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
238 * @who: The name of the buddy whose alias was received.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
239 * @alias: The alias that was received.
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
240 *
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
241 * A protocol should call this when it retrieves a private alias from
22474
d08590a6660c This is part of a patch from felipec, also known as shx, that adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 20147
diff changeset
242 * the server. Private aliases are the aliases the user sets, while public
d08590a6660c This is part of a patch from felipec, also known as shx, that adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 20147
diff changeset
243 * aliases are the aliases or display names that buddies set for themselves.
d08590a6660c This is part of a patch from felipec, also known as shx, that adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 20147
diff changeset
244 */
d08590a6660c This is part of a patch from felipec, also known as shx, that adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 20147
diff changeset
245 void purple_serv_got_private_alias(PurpleConnection *gc, const char *who, const char *alias);
d08590a6660c This is part of a patch from felipec, also known as shx, that adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 20147
diff changeset
246
13844
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
247
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
248 /**
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
249 * purple_serv_got_typing:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
250 * @gc: The connection on which the typing message was received.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
251 * @name: The name of the remote user.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
252 * @timeout: If this is a number greater than 0, then
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
253 * Purple will wait this number of seconds and then
34670
9bd5bd903dc7 Renamed chat buddies to chat users, and IM conversation typing state to IM typing state.
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
254 * set this buddy to the PURPLE_IM_NOT_TYPING state. This
13844
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
255 * is used by protocols that send repeated typing messages
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
256 * while the user is composing the message.
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
257 * @state: The typing state received
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
258 *
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
259 * Receive a typing message from a remote user. Either PURPLE_IM_TYPING
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
260 * or PURPLE_IM_TYPED. If the user has stopped typing then use
35501
602747bb4af9 Fix duplicate prefixes
Ankit Vani <a@nevitus.org>
parents: 35499
diff changeset
261 * purple_serv_got_typing_stopped instead.
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
262 *
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
263 * @todo Could probably move this into the conversation API.
13844
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
264 */
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
265 void purple_serv_got_typing(PurpleConnection *gc, const char *name, int timeout,
34670
9bd5bd903dc7 Renamed chat buddies to chat users, and IM conversation typing state to IM typing state.
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
266 PurpleIMTypingState state);
13844
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
267
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
268 /**
35501
602747bb4af9 Fix duplicate prefixes
Ankit Vani <a@nevitus.org>
parents: 35499
diff changeset
269 * purple_serv_got_typing_stopped:
38024
437704dbfe17 doc fixes for server.h
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
270 * @gc: The #PurpleConnection
437704dbfe17 doc fixes for server.h
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
271 * @name: The name of the person that stopped typing.
437704dbfe17 doc fixes for server.h
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
272 *
41083
590d533cf290 Fix several typos in libpurple
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40885
diff changeset
273 * Called from a protocol when it has received a type stopped.
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
274 *
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
275 * @todo Could probably move this into the conversation API.
13844
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
276 */
35501
602747bb4af9 Fix duplicate prefixes
Ankit Vani <a@nevitus.org>
parents: 35499
diff changeset
277 void purple_serv_got_typing_stopped(PurpleConnection *gc, const char *name);
13844
835b8f7b3d1d [gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents: 13295
diff changeset
278
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
279 /**
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
280 * purple_serv_got_im:
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
281 * @gc: The connection on which the typing message was received.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
282 * @who: The username of the buddy that sent the message.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
283 * @msg: The actual message received.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
284 * @flags: The flags applicable to this message.
38024
437704dbfe17 doc fixes for server.h
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
285 * @mtime: The timestamp of the message.
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
286 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
287 * This function is called by the protocol when it receives an IM message.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
288 */
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
289 void purple_serv_got_im(PurpleConnection *gc, const char *who, const char *msg,
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
290 PurpleMessageFlags flags, time_t mtime);
15203
1a092806f344 [gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents: 15043
diff changeset
291
1a092806f344 [gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents: 15043
diff changeset
292 /**
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
293 * purple_serv_join_chat:
38024
437704dbfe17 doc fixes for server.h
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
294 * @gc: The #PurpleConnection
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
295 * @data: The hash function should be g_str_hash() and the equal
15203
1a092806f344 [gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents: 15043
diff changeset
296 * function should be g_str_equal().
1a092806f344 [gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents: 15043
diff changeset
297 */
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
298 void purple_serv_join_chat(PurpleConnection *gc, GHashTable *data);
15203
1a092806f344 [gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents: 15043
diff changeset
299
1a092806f344 [gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents: 15043
diff changeset
300 /**
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
301 * purple_serv_reject_chat:
38024
437704dbfe17 doc fixes for server.h
Gary Kramlich <grim@reaperworld.com>
parents: 38016
diff changeset
302 * @gc: The #PurpleConnection
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
303 * @data: The hash function should be g_str_hash() and the equal
15203
1a092806f344 [gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents: 15043
diff changeset
304 * function should be g_str_equal().
1a092806f344 [gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents: 15043
diff changeset
305 */
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
306 void purple_serv_reject_chat(PurpleConnection *gc, GHashTable *data);
15203
1a092806f344 [gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents: 15043
diff changeset
307
1a092806f344 [gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents: 15043
diff changeset
308 /**
35501
602747bb4af9 Fix duplicate prefixes
Ankit Vani <a@nevitus.org>
parents: 35499
diff changeset
309 * purple_serv_got_chat_invite:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
310 * @gc: The connection on which the invite arrived.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
311 * @name: The name of the chat you're being invited to.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
312 * @who: The username of the person inviting the account.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
313 * @message: The optional invite message.
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
314 * @data: The components necessary if you want to call purple_serv_join_chat().
16262
1d9b65303dfc Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents: 15997
diff changeset
315 * The hash function should be g_str_hash() and the equal
1d9b65303dfc Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents: 15997
diff changeset
316 * function should be g_str_equal().
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
317 *
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
318 * Called by a protocol when an account is invited into a chat.
15203
1a092806f344 [gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents: 15043
diff changeset
319 */
35501
602747bb4af9 Fix duplicate prefixes
Ankit Vani <a@nevitus.org>
parents: 35499
diff changeset
320 void purple_serv_got_chat_invite(PurpleConnection *gc, const char *name,
5872
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
321 const char *who, const char *message,
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
322 GHashTable *data);
15203
1a092806f344 [gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents: 15043
diff changeset
323
28684
b4c337df39a1 Documented chat API. References #10605
Felix Kerekes <sttwister@soc.pidgin.im>
parents: 25889
diff changeset
324 /**
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
325 * purple_serv_got_joined_chat:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
326 * @gc: The connection on which the chat was joined.
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
327 * @id: The id of the chat, assigned by the protocol.
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
328 * @name: The name of the chat.
28684
b4c337df39a1 Documented chat API. References #10605
Felix Kerekes <sttwister@soc.pidgin.im>
parents: 25889
diff changeset
329 *
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
330 * Called by a protocol when an account has joined a chat.
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
331 *
39738
14d425a528ad Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39659
diff changeset
332 * Returns: (transfer none): The resulting conversation.
28684
b4c337df39a1 Documented chat API. References #10605
Felix Kerekes <sttwister@soc.pidgin.im>
parents: 25889
diff changeset
333 */
40885
87f6241da196 Update purple_conversations_find_* to return PurpleConversations instead of subclasses
Gary Kramlich <grim@reaperworld.com>
parents: 40696
diff changeset
334 PurpleConversation *purple_serv_got_joined_chat(PurpleConnection *gc,
5872
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
335 int id, const char *name);
22920
6681f6f71dfc applied changes from feb2303b4209e0eeb4e20beaf151b1e4368c4e03
Evan Schoenberg <evands@pidgin.im>
parents: 22919
diff changeset
336 /**
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
337 * purple_serv_got_join_chat_failed:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
338 * @gc: The connection on which chat joining failed
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
339 * @data: The components passed to purple_serv_join_chat() originally.
23270
2b7db16e721a As discussed on the devel list, purple_serv_got_join_chat_failed() and the
Evan Schoenberg <evands@pidgin.im>
parents: 22920
diff changeset
340 * The hash function should be g_str_hash() and the equal
2b7db16e721a As discussed on the devel list, purple_serv_got_join_chat_failed() and the
Evan Schoenberg <evands@pidgin.im>
parents: 22920
diff changeset
341 * function should be g_str_equal().
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
342 *
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
343 * Called by a protocol when an attempt to join a chat via purple_serv_join_chat()
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
344 * fails.
22920
6681f6f71dfc applied changes from feb2303b4209e0eeb4e20beaf151b1e4368c4e03
Evan Schoenberg <evands@pidgin.im>
parents: 22919
diff changeset
345 */
23270
2b7db16e721a As discussed on the devel list, purple_serv_got_join_chat_failed() and the
Evan Schoenberg <evands@pidgin.im>
parents: 22920
diff changeset
346 void purple_serv_got_join_chat_failed(PurpleConnection *gc, GHashTable *data);
25888
d0fdd378a635 Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents: 23875
diff changeset
347
28684
b4c337df39a1 Documented chat API. References #10605
Felix Kerekes <sttwister@soc.pidgin.im>
parents: 25889
diff changeset
348 /**
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
349 * purple_serv_got_chat_left:
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
350 * @g: The connection on which the chat was left.
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
351 * @id: The id of the chat, as assigned by the protocol.
28684
b4c337df39a1 Documented chat API. References #10605
Felix Kerekes <sttwister@soc.pidgin.im>
parents: 25889
diff changeset
352 *
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
353 * Called by a protocol when an account has left a chat.
28684
b4c337df39a1 Documented chat API. References #10605
Felix Kerekes <sttwister@soc.pidgin.im>
parents: 25889
diff changeset
354 */
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
355 void purple_serv_got_chat_left(PurpleConnection *g, int id);
28684
b4c337df39a1 Documented chat API. References #10605
Felix Kerekes <sttwister@soc.pidgin.im>
parents: 25889
diff changeset
356
b4c337df39a1 Documented chat API. References #10605
Felix Kerekes <sttwister@soc.pidgin.im>
parents: 25889
diff changeset
357 /**
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
358 * purple_serv_got_chat_in:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
359 * @g: The connection on which the message was received.
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
360 * @id: The id of the chat, as assigned by the protocol.
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
361 * @who: The name of the user who sent the message.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
362 * @flags: The flags of the message.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
363 * @message: The message received in the chat.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
364 * @mtime: The time when the message was received.
28684
b4c337df39a1 Documented chat API. References #10605
Felix Kerekes <sttwister@soc.pidgin.im>
parents: 25889
diff changeset
365 *
35402
6eae3b385153 Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
366 * Called by a protocol when a message has been received in a chat.
28684
b4c337df39a1 Documented chat API. References #10605
Felix Kerekes <sttwister@soc.pidgin.im>
parents: 25889
diff changeset
367 */
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
368 void purple_serv_got_chat_in(PurpleConnection *g, int id, const char *who,
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
369 PurpleMessageFlags flags, const char *message, time_t mtime);
5872
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
370
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
371 /**
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
372 * purple_serv_send_file:
38016
3ac0882cd563 A few random cleanups and don't even try to document class structs
Gary Kramlich <grim@reaperworld.com>
parents: 37944
diff changeset
373 * @gc: The connection on which the message was received.
37162
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
374 * @who: The name of the user to who send the file.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
375 * @file: The filename to send.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
376 *
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
377 * Send a filename to a given contact.
3336df05de5b Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37148
diff changeset
378 */
35499
c4c5e0a670b1 Fix namespaces issues in libpurple.
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
379 void purple_serv_send_file(PurpleConnection *gc, const char *who, const char *file);
5872
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
380
32787
7072f190d6ad Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32301
diff changeset
381 G_END_DECLS
5944
f19df037ac58 [gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents: 5872
diff changeset
382
39659
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38859
diff changeset
383 #endif /* PURPLE_SERVER_H */

mercurial