comparison libpurple/protocols/jabber/chat.h @ 28372:724e77faee1a

jabber: Refactor the chat-joining code
author Paul Aurich <paul@darkrain42.org>
date Mon, 12 Oct 2009 18:11:32 +0000
parents c585572e80dd
children 63dc67b32577
comparison
equal deleted inserted replaced
28371:51d507e6c8f3 28372:724e77faee1a
55 } JabberChat; 55 } JabberChat;
56 56
57 GList *jabber_chat_info(PurpleConnection *gc); 57 GList *jabber_chat_info(PurpleConnection *gc);
58 GHashTable *jabber_chat_info_defaults(PurpleConnection *gc, const char *chat_name); 58 GHashTable *jabber_chat_info_defaults(PurpleConnection *gc, const char *chat_name);
59 char *jabber_get_chat_name(GHashTable *data); 59 char *jabber_get_chat_name(GHashTable *data);
60
61 /**
62 * in-prpl function for joining a chat room. Doesn't require sticking goop
63 * into a hash table.
64 *
65 * @param password The password (if required) to join the room. May be NULL.
66 * @param data A hash table (since it's still required for the core
67 * interface API).
68 */
69 JabberChat *jabber_join_chat(JabberStream *js, const char *room,
70 const char *server, const char *handle,
71 const char *password, GHashTable *data);
72
60 void jabber_chat_join(PurpleConnection *gc, GHashTable *data); 73 void jabber_chat_join(PurpleConnection *gc, GHashTable *data);
61 JabberChat *jabber_chat_find(JabberStream *js, const char *room, 74 JabberChat *jabber_chat_find(JabberStream *js, const char *room,
62 const char *server); 75 const char *server);
63 JabberChat *jabber_chat_find_by_id(JabberStream *js, int id); 76 JabberChat *jabber_chat_find_by_id(JabberStream *js, int id);
64 JabberChat *jabber_chat_find_by_conv(PurpleConversation *conv); 77 JabberChat *jabber_chat_find_by_conv(PurpleConversation *conv);