changeset 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 8c3fbc353a9c
children 906ed2836a04
files libpurple/protocols/jabber/buddy.c libpurple/protocols/jabber/buddy.h
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
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);
--- 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);