Mercurial > pidgin
comparison libpurple/protocols/jabber/buddy.c @ 17873: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 |
comparison
equal
deleted
inserted
replaced
17872:8c3fbc353a9c | 17873:3f2b5e2ab5c5 |
---|---|
2018 | 2018 |
2019 g_free(instructions); | 2019 g_free(instructions); |
2020 } | 2020 } |
2021 } | 2021 } |
2022 | 2022 |
2023 static void jabber_user_search_ok(JabberStream *js, const char *directory) | 2023 void jabber_user_search(JabberStream *js, const char *directory) |
2024 { | 2024 { |
2025 JabberIq *iq; | 2025 JabberIq *iq; |
2026 | 2026 |
2027 /* XXX: should probably better validate the directory we're given */ | 2027 /* XXX: should probably better validate the directory we're given */ |
2028 if(!directory || !*directory) { | 2028 if(!directory || !*directory) { |
2045 | 2045 |
2046 purple_request_input(gc, _("Enter a User Directory"), _("Enter a User Directory"), | 2046 purple_request_input(gc, _("Enter a User Directory"), _("Enter a User Directory"), |
2047 _("Select a user directory to search"), | 2047 _("Select a user directory to search"), |
2048 js->user_directories ? js->user_directories->data : NULL, | 2048 js->user_directories ? js->user_directories->data : NULL, |
2049 FALSE, FALSE, NULL, | 2049 FALSE, FALSE, NULL, |
2050 _("Search Directory"), PURPLE_CALLBACK(jabber_user_search_ok), | 2050 _("Search Directory"), PURPLE_CALLBACK(jabber_user_search), |
2051 _("Cancel"), NULL, | 2051 _("Cancel"), NULL, |
2052 NULL, NULL, NULL, | 2052 NULL, NULL, NULL, |
2053 js); | 2053 js); |
2054 } | 2054 } |
2055 | 2055 |