diff options
Diffstat (limited to 'src/xmpp/presence.c')
-rw-r--r-- | src/xmpp/presence.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/xmpp/presence.c b/src/xmpp/presence.c index 1bd1ec93..4f450f70 100644 --- a/src/xmpp/presence.c +++ b/src/xmpp/presence.c @@ -141,6 +141,18 @@ presence_free_sub_requests(void) autocomplete_free(sub_requests_ac); } +char * +presence_sub_request_find(char * search_str) +{ + return autocomplete_complete(sub_requests_ac, search_str); +} + +void +presence_reset_sub_request_search(void) +{ + autocomplete_reset(sub_requests_ac); +} + void presence_update(const resource_presence_t presence_type, const char * const msg, const int idle) |