diff libpurple/protocols/jabber/buddy.c @ 17600:3f2b5e2ab5c5

Exposed the user search function, so that directory searches can be performed directly when the jid is known.
author Andreas Monitzer <pidgin@monitzer.com>
date Tue, 19 Jun 2007 16:10:36 +0000
parents 58a145802f0a
children 906ed2836a04
line wrap: on
line diff
--- 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);