Mercurial > pidgin
comparison libpurple/server.h @ 22756:17cda378a2dd
Added "chat-join-failed" signal, emitted by a new serv_got_join_chat_failed()
function in server.c. This is emitted with the PurpleConnection and
chat name and allows a UI or plugin which was expecting a group chat to be
joined to know if failure occurred.
serv_got_join_chat_failed() is only called by jabber so far; I know that
at least oscar should call it some situations, as well, such as when a
busted SNAC error is received after trying to join a chat with an invalid
room name.
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Tue, 29 Apr 2008 01:46:40 +0000 |
parents | 3232cc79fa51 |
children | 1517d3c763fc f1a4ad1526a2 |
comparison
equal
deleted
inserted
replaced
22755:01e0ddc7e040 | 22756:17cda378a2dd |
---|---|
164 const char *who, const char *message, | 164 const char *who, const char *message, |
165 GHashTable *data); | 165 GHashTable *data); |
166 | 166 |
167 PurpleConversation *serv_got_joined_chat(PurpleConnection *gc, | 167 PurpleConversation *serv_got_joined_chat(PurpleConnection *gc, |
168 int id, const char *name); | 168 int id, const char *name); |
169 /** | |
170 * Called by a prpl when an attempt to join a chat via serv_join_chat() | |
171 * fails. | |
172 * | |
173 * @param gc The connection on which chat joining failed | |
174 * @param name The name of the chat which we did not join | |
175 */ | |
176 void serv_got_join_chat_failed(PurpleConnection *gc, const char *name); | |
177 | |
169 void serv_got_chat_left(PurpleConnection *g, int id); | 178 void serv_got_chat_left(PurpleConnection *g, int id); |
170 void serv_got_chat_in(PurpleConnection *g, int id, const char *who, | 179 void serv_got_chat_in(PurpleConnection *g, int id, const char *who, |
171 PurpleMessageFlags flags, const char *message, time_t mtime); | 180 PurpleMessageFlags flags, const char *message, time_t mtime); |
172 void serv_send_file(PurpleConnection *gc, const char *who, const char *file); | 181 void serv_send_file(PurpleConnection *gc, const char *who, const char *file); |
173 | 182 |