comparison libpurple/protocols/jabber/disco.h @ 26336:c619bef09bec

Make the prpl be in charge of creating the PurpleDiscoList; UI data is allocated via ops->create. When the prpl sets protocol data, it also passed in a close_cb which is called when destroying the struct to clean up the protocol data. This still works, but I've introduced some bugs with cancelling the disco or closing the GtkDisco dialog
author Paul Aurich <paul@darkrain42.org>
date Tue, 31 Mar 2009 05:18:09 +0000
parents f5e613e05332
children b5fe3f47487b
comparison
equal deleted inserted replaced
26335:290ea90869c0 26336:c619bef09bec
33 void jabber_disco_items_server(JabberStream *js); 33 void jabber_disco_items_server(JabberStream *js);
34 34
35 void jabber_disco_info_do(JabberStream *js, const char *who, 35 void jabber_disco_info_do(JabberStream *js, const char *who,
36 JabberDiscoInfoCallback *callback, gpointer data); 36 JabberDiscoInfoCallback *callback, gpointer data);
37 37
38 void jabber_disco_get_list(PurpleConnection *gc, PurpleDiscoList* list); 38 PurpleDiscoList *jabber_disco_get_list(PurpleConnection *gc);
39 void jabber_disco_cancel(PurpleDiscoList *list); 39 void jabber_disco_cancel(PurpleDiscoList *list);
40 40
41 int jabber_disco_service_register(PurpleConnection *gc, PurpleDiscoService *service); 41 int jabber_disco_service_register(PurpleConnection *gc, PurpleDiscoService *service);
42 42
43 #endif /* _PURPLE_JABBER_DISCO_H_ */ 43 #endif /* _PURPLE_JABBER_DISCO_H_ */