comparison src/protocols/jabber/chat.h @ 8396:387ba791d5f9

[gaim-migrate @ 9125] fix a crash in jabber chats when you leave the chat before closing the configuration dialog, and plug a memleak. Thanks deryni for pointing the crash out committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 04 Mar 2004 17:07:56 +0000
parents e283be34aadf
children 0383e55cd658
comparison
equal deleted inserted replaced
8395:09083081643a 8396:387ba791d5f9
23 #define _GAIM_JABBER_CHAT_H_ 23 #define _GAIM_JABBER_CHAT_H_
24 24
25 #include "internal.h" 25 #include "internal.h"
26 #include "connection.h" 26 #include "connection.h"
27 #include "conversation.h" 27 #include "conversation.h"
28 #include "request.h"
28 #include "roomlist.h" 29 #include "roomlist.h"
29 30
30 #include "jabber.h" 31 #include "jabber.h"
31 32
32 33
36 char *server; 37 char *server;
37 int id; 38 int id;
38 GaimConversation *conv; 39 GaimConversation *conv;
39 gboolean muc; 40 gboolean muc;
40 gboolean xhtml; 41 gboolean xhtml;
42 GaimRequestType config_dialog_type;
43 void *config_dialog_handle;
41 } JabberChat; 44 } JabberChat;
42 45
43 GList *jabber_chat_info(GaimConnection *gc); 46 GList *jabber_chat_info(GaimConnection *gc);
44 void jabber_chat_join(GaimConnection *gc, GHashTable *data); 47 void jabber_chat_join(GaimConnection *gc, GHashTable *data);
45 JabberChat *jabber_chat_find(JabberStream *js, const char *room, 48 JabberChat *jabber_chat_find(JabberStream *js, const char *room,
46 const char *server); 49 const char *server);
47 JabberChat *jabber_chat_find_by_id(JabberStream *js, int id); 50 JabberChat *jabber_chat_find_by_id(JabberStream *js, int id);
48 void jabber_chat_destroy(JabberChat *chat); 51 void jabber_chat_destroy(JabberChat *chat);
52 void jabber_chat_free(JabberChat *chat);
49 gboolean jabber_chat_find_buddy(GaimConversation *conv, const char *name); 53 gboolean jabber_chat_find_buddy(GaimConversation *conv, const char *name);
50 void jabber_chat_invite(GaimConnection *gc, int id, const char *message, 54 void jabber_chat_invite(GaimConnection *gc, int id, const char *message,
51 const char *name); 55 const char *name);
52 void jabber_chat_leave(GaimConnection *gc, int id); 56 void jabber_chat_leave(GaimConnection *gc, int id);
53 char *jabber_chat_buddy_real_name(GaimConnection *gc, int id, const char *who); 57 char *jabber_chat_buddy_real_name(GaimConnection *gc, int id, const char *who);