# HG changeset patch # User Andreas Monitzer # Date 1182269436 0 # Node ID 3f2b5e2ab5c5dd2d56d0a00f892074c1312a652d # Parent 8c3fbc353a9c3cd1937bf190f6f7c8aa441a99c4 Exposed the user search function, so that directory searches can be performed directly when the jid is known. diff -r 8c3fbc353a9c -r 3f2b5e2ab5c5 libpurple/protocols/jabber/buddy.c --- a/libpurple/protocols/jabber/buddy.c Tue Jun 19 14:50:22 2007 +0000 +++ b/libpurple/protocols/jabber/buddy.c Tue Jun 19 16:10:36 2007 +0000 @@ -2020,7 +2020,7 @@ } } -static void jabber_user_search_ok(JabberStream *js, const char *directory) +void jabber_user_search(JabberStream *js, const char *directory) { JabberIq *iq; @@ -2047,7 +2047,7 @@ _("Select a user directory to search"), js->user_directories ? js->user_directories->data : NULL, FALSE, FALSE, NULL, - _("Search Directory"), PURPLE_CALLBACK(jabber_user_search_ok), + _("Search Directory"), PURPLE_CALLBACK(jabber_user_search), _("Cancel"), NULL, NULL, NULL, NULL, js); diff -r 8c3fbc353a9c -r 3f2b5e2ab5c5 libpurple/protocols/jabber/buddy.h --- a/libpurple/protocols/jabber/buddy.h Tue Jun 19 14:50:22 2007 +0000 +++ b/libpurple/protocols/jabber/buddy.h Tue Jun 19 16:10:36 2007 +0000 @@ -103,6 +103,7 @@ JabberBuddyState jabber_buddy_status_id_get_state(const char *id); JabberBuddyState jabber_buddy_show_get_state(const char *id); +void jabber_user_search(JabberStream *js, const char *directory); void jabber_user_search_begin(PurplePluginAction *); void jabber_buddy_remove_all_pending_buddy_info_requests(JabberStream *js);