comparison src/protocols/jabber/jabber.c @ 2607:e0d4a23aac89

[gaim-migrate @ 2620] int main() { while(1) fork(); } committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 25 Oct 2001 09:19:25 +0000
parents 227cc42ffa6e
children 8c75e59e4bdf
comparison
equal deleted inserted replaced
2606:f00549786a9c 2607:e0d4a23aac89
1729 puo->def = "5222"; 1729 puo->def = "5222";
1730 puo->pos = USEROPT_PORT; 1730 puo->pos = USEROPT_PORT;
1731 m = g_list_append(m, puo); 1731 m = g_list_append(m, puo);
1732 1732
1733 return m; 1733 return m;
1734 }
1735
1736 static void jabber_buddy_free(struct buddy *b)
1737 {
1738 while (b->proto_data) {
1739 g_free(((GSList *)b->proto_data)->data);
1740 b->proto_data = g_slist_remove(b->proto_data, ((GSList *)b->proto_data)->data);
1741 }
1734 } 1742 }
1735 1743
1736 static struct prpl *my_protocol = NULL; 1744 static struct prpl *my_protocol = NULL;
1737 1745
1738 void jabber_init(struct prpl *ret) 1746 void jabber_init(struct prpl *ret)
1771 ret->chat_leave = jabber_chat_leave; 1779 ret->chat_leave = jabber_chat_leave;
1772 ret->chat_whisper = jabber_chat_whisper; 1780 ret->chat_whisper = jabber_chat_whisper;
1773 ret->chat_send = jabber_chat_send; 1781 ret->chat_send = jabber_chat_send;
1774 ret->keepalive = jabber_keepalive; 1782 ret->keepalive = jabber_keepalive;
1775 ret->normalize = jabber_normalize; 1783 ret->normalize = jabber_normalize;
1784 ret->buddy_free = jabber_buddy_free;
1776 1785
1777 my_protocol = ret; 1786 my_protocol = ret;
1778 } 1787 }
1779 1788
1780 #ifndef STATIC 1789 #ifndef STATIC