Sat, 22 Mar 2008 09:40:38 +0000
Add log-handlers for farsight foo.
| 5872 | 1 | /** |
| 2 | * @file server.h Server API | |
| 3 | * @ingroup core | |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19862
diff
changeset
|
4 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19862
diff
changeset
|
5 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19862
diff
changeset
|
6 | /* purple |
| 5872 | 7 | * |
| 15884 | 8 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 9 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 10 | * source distribution. | |
|
6787
7d8e0ba98f68
[gaim-migrate @ 7326]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
11 | * |
| 5872 | 12 | * This program is free software; you can redistribute it and/or modify |
| 13 | * it under the terms of the GNU General Public License as published by | |
| 14 | * the Free Software Foundation; either version 2 of the License, or | |
| 15 | * (at your option) any later version. | |
| 16 | * | |
| 17 | * This program is distributed in the hope that it will be useful, | |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | * GNU General Public License for more details. | |
| 21 | * | |
| 22 | * You should have received a copy of the GNU General Public License | |
| 23 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19639
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5872 | 25 | */ |
| 15884 | 26 | #ifndef _PURPLE_SERVER_H_ |
| 27 | #define _PURPLE_SERVER_H_ | |
| 5872 | 28 | |
| 29 | #include "account.h" | |
| 30 | #include "conversation.h" | |
|
9718
aeee69c6c784
[gaim-migrate @ 10579]
Mark Doliner <markdoliner@pidgin.im>
parents:
9584
diff
changeset
|
31 | #include "prpl.h" |
|
22648
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22474
diff
changeset
|
32 | #include "media.h" |
| 5872 | 33 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
34 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
35 | extern "C" { |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
36 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
37 | |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
38 | /** |
|
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
39 | * 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
|
40 | * |
|
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
41 | * TODO: Could probably move this into the conversation API. |
|
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
42 | * |
|
16262
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
15997
diff
changeset
|
43 | * @param gc The connection over which to send the typing notification. |
|
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
15997
diff
changeset
|
44 | * @param name The user to send the typing notification to. |
|
15997
ff97c5f69196
A little doxygen love and some tiny gaim->purpleisms
Mark Doliner <markdoliner@pidgin.im>
parents:
15884
diff
changeset
|
45 | * @param state One of PURPLE_TYPING, PURPLE_TYPED, or PURPLE_NOT_TYPING. |
| 15884 | 46 | * @return A quiet-period, specified in seconds, where Purple will not |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
47 | * send any additional typing notification messages. Most |
|
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
48 | * protocols should return 0, which means that no additional |
| 15884 | 49 | * PURPLE_TYPING messages need to be sent. If this is 5, for |
| 50 | * example, then Purple will wait five seconds, and if the Purple | |
| 51 | * user is still typing then Purple will send another PURPLE_TYPING | |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
52 | * message. |
|
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
53 | */ |
| 15884 | 54 | unsigned int serv_send_typing(PurpleConnection *gc, const char *name, PurpleTypingState state); |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
55 | |
| 15884 | 56 | void serv_move_buddy(PurpleBuddy *, PurpleGroup *, PurpleGroup *); |
| 57 | int serv_send_im(PurpleConnection *, const char *, const char *, PurpleMessageFlags flags); | |
|
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
|
58 | |
|
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
|
59 | /** Get information about an account's attention commands, from the prpl. |
|
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
|
60 | * |
|
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
|
61 | * @return The attention command numbered 'code' from the prpl's attention_types, or NULL. |
|
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
|
62 | */ |
|
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
|
63 | 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
|
64 | |
|
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
|
65 | /** Send an attention request message. |
|
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
|
66 | * |
|
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
|
67 | * @param gc The connection to send the message on. |
|
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
|
68 | * @param who Whose attention to request. |
|
19862
3aa48ac21c45
This will silence a few warnings when building the Doxygen docs.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
69 | * @param type_code An index into the prpl's attention_types list determining the type |
|
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
|
70 | * of the attention request command to send. 0 if prpl only defines one |
|
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
|
71 | * (for example, Yahoo and MSN), but some protocols define more (MySpaceIM). |
|
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
|
72 | * |
|
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
|
73 | * Note that you can't send arbitrary PurpleAttentionType's, because there is |
|
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
|
74 | * only a fixed set of attention commands. |
|
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
|
75 | */ |
|
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
|
76 | void serv_send_attention(PurpleConnection *gc, const char *who, 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
|
77 | |
|
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
|
78 | /** Process an incoming attention message. |
|
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
|
79 | * |
|
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
|
80 | * @param gc The connection that received the attention message. |
|
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
|
81 | * @param who Who requested your attention. |
|
19862
3aa48ac21c45
This will silence a few warnings when building the Doxygen docs.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
82 | * @param type_code An index into the prpl's attention_types list determining the type |
|
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
|
83 | * of the attention request command to send. |
|
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
|
84 | */ |
|
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
|
85 | void serv_got_attention(PurpleConnection *gc, const char *who, 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
|
86 | |
| 15884 | 87 | void serv_get_info(PurpleConnection *, const char *); |
| 88 | void serv_set_info(PurpleConnection *, const char *); | |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
89 | |
| 15884 | 90 | void serv_add_permit(PurpleConnection *, const char *); |
| 91 | void serv_add_deny(PurpleConnection *, const char *); | |
| 92 | void serv_rem_permit(PurpleConnection *, const char *); | |
| 93 | void serv_rem_deny(PurpleConnection *, const char *); | |
| 94 | void serv_set_permit_deny(PurpleConnection *); | |
| 95 | void serv_chat_invite(PurpleConnection *, int, const char *, const char *); | |
| 96 | void serv_chat_leave(PurpleConnection *, int); | |
| 97 | void serv_chat_whisper(PurpleConnection *, int, const char *, const char *); | |
| 98 | int serv_chat_send(PurpleConnection *, int, const char *, PurpleMessageFlags flags); | |
| 99 | void serv_alias_buddy(PurpleBuddy *); | |
| 100 | void 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
|
101 | |
|
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
|
102 | /** |
|
d08590a6660c
This is part of a patch from felipec, also known as shx, that adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20147
diff
changeset
|
103 | * A protocol plugin should call this when it retrieves a private alias from |
|
d08590a6660c
This is part of a patch from felipec, also known as shx, that adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20147
diff
changeset
|
104 | * 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
|
105 | * 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
|
106 | * |
|
d08590a6660c
This is part of a patch from felipec, also known as shx, that adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20147
diff
changeset
|
107 | * @param gc The connection on which the alias was received. |
|
d08590a6660c
This is part of a patch from felipec, also known as shx, that adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20147
diff
changeset
|
108 | * @param who The screen name of the buddy whose alias was received. |
|
d08590a6660c
This is part of a patch from felipec, also known as shx, that adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20147
diff
changeset
|
109 | * @param alias The alias that was received. |
|
d08590a6660c
This is part of a patch from felipec, also known as shx, that adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20147
diff
changeset
|
110 | */ |
|
d08590a6660c
This is part of a patch from felipec, also known as shx, that adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20147
diff
changeset
|
111 | 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
|
112 | |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
113 | |
|
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
114 | /** |
| 15884 | 115 | * Receive a typing message from a remote user. Either PURPLE_TYPING |
| 116 | * or PURPLE_TYPED. If the user has stopped typing then use | |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
117 | * serv_got_typing_stopped instead. |
|
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
118 | * |
|
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
119 | * TODO: Could probably move this into the conversation API. |
|
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
120 | * |
|
16262
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
15997
diff
changeset
|
121 | * @param gc The connection on which the typing message was received. |
|
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
15997
diff
changeset
|
122 | * @param name The name of the remote user. |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
123 | * @param timeout If this is a number greater than 0, then |
| 15884 | 124 | * Purple will wait this number of seconds and then |
| 125 | * set this buddy to the PURPLE_NOT_TYPING state. This | |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
126 | * is used by protocols that send repeated typing messages |
|
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
127 | * while the user is composing the message. |
|
16262
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
15997
diff
changeset
|
128 | * @param state The typing state received |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
129 | */ |
| 15884 | 130 | void serv_got_typing(PurpleConnection *gc, const char *name, int timeout, |
| 131 | PurpleTypingState state); | |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
132 | |
|
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
133 | /** |
|
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
134 | * TODO: Could probably move this into the conversation API. |
|
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
135 | */ |
| 15884 | 136 | void serv_got_typing_stopped(PurpleConnection *gc, const char *name); |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13295
diff
changeset
|
137 | |
| 15884 | 138 | void serv_got_im(PurpleConnection *gc, const char *who, const char *msg, |
| 139 | PurpleMessageFlags flags, time_t mtime); | |
|
15203
1a092806f344
[gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents:
15043
diff
changeset
|
140 | |
|
1a092806f344
[gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents:
15043
diff
changeset
|
141 | /** |
|
1a092806f344
[gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents:
15043
diff
changeset
|
142 | * @param data The hash function should be g_str_hash() and the equal |
|
1a092806f344
[gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents:
15043
diff
changeset
|
143 | * function should be g_str_equal(). |
|
1a092806f344
[gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents:
15043
diff
changeset
|
144 | */ |
|
15997
ff97c5f69196
A little doxygen love and some tiny gaim->purpleisms
Mark Doliner <markdoliner@pidgin.im>
parents:
15884
diff
changeset
|
145 | void serv_join_chat(PurpleConnection *, GHashTable *data); |
|
15203
1a092806f344
[gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents:
15043
diff
changeset
|
146 | |
|
1a092806f344
[gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents:
15043
diff
changeset
|
147 | /** |
|
1a092806f344
[gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents:
15043
diff
changeset
|
148 | * @param data The hash function should be g_str_hash() and the equal |
|
1a092806f344
[gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents:
15043
diff
changeset
|
149 | * function should be g_str_equal(). |
|
1a092806f344
[gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents:
15043
diff
changeset
|
150 | */ |
|
15997
ff97c5f69196
A little doxygen love and some tiny gaim->purpleisms
Mark Doliner <markdoliner@pidgin.im>
parents:
15884
diff
changeset
|
151 | void serv_reject_chat(PurpleConnection *, GHashTable *data); |
|
15203
1a092806f344
[gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents:
15043
diff
changeset
|
152 | |
|
1a092806f344
[gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents:
15043
diff
changeset
|
153 | /** |
|
16262
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
15997
diff
changeset
|
154 | * Called by a prpl when an account is invited into a chat. |
|
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
15997
diff
changeset
|
155 | * |
|
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
15997
diff
changeset
|
156 | * @param gc The connection on which the invite arrived. |
|
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
15997
diff
changeset
|
157 | * @param name The name of the chat you're being invited to. |
|
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
15997
diff
changeset
|
158 | * @param who The username of the person inviting the account. |
|
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
15997
diff
changeset
|
159 | * @param message The optional invite message. |
|
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
15997
diff
changeset
|
160 | * @param data The components necessary if you want to call serv_join_chat(). |
|
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
15997
diff
changeset
|
161 | * 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
|
162 | * function should be g_str_equal(). |
|
15203
1a092806f344
[gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents:
15043
diff
changeset
|
163 | */ |
| 15884 | 164 | void serv_got_chat_invite(PurpleConnection *gc, const char *name, |
| 5872 | 165 | const char *who, const char *message, |
| 166 | GHashTable *data); | |
|
15203
1a092806f344
[gaim-migrate @ 17927]
Mark Doliner <markdoliner@pidgin.im>
parents:
15043
diff
changeset
|
167 | |
| 15884 | 168 | PurpleConversation *serv_got_joined_chat(PurpleConnection *gc, |
| 5872 | 169 | int id, const char *name); |
| 15884 | 170 | void serv_got_chat_left(PurpleConnection *g, int id); |
| 171 | void serv_got_chat_in(PurpleConnection *g, int id, const char *who, | |
| 172 | PurpleMessageFlags flags, const char *message, time_t mtime); | |
| 173 | void serv_send_file(PurpleConnection *gc, const char *who, const char *file); | |
| 5872 | 174 | |
|
22648
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22474
diff
changeset
|
175 | #ifdef USE_FARSIGHT |
|
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22474
diff
changeset
|
176 | PurpleMedia *serv_initiate_media(PurpleConnection *gc, const char *who, |
|
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22474
diff
changeset
|
177 | PurpleMediaStreamType type); |
|
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22474
diff
changeset
|
178 | gboolean serv_can_do_media(PurpleConnection *gc, const char *who, |
|
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22474
diff
changeset
|
179 | PurpleMediaStreamType type); |
|
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22474
diff
changeset
|
180 | #else |
|
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22474
diff
changeset
|
181 | /* hmm, is this really nice? */ |
|
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22474
diff
changeset
|
182 | void *serv_initiate_media(void*, void*, void*); |
|
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22474
diff
changeset
|
183 | void *serv_can_do_media(void *, void *, void *); |
|
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22474
diff
changeset
|
184 | #endif |
|
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22474
diff
changeset
|
185 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
186 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
187 | } |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
188 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
189 | |
| 15884 | 190 | #endif /* _PURPLE_SERVER_H_ */ |