diff options
Diffstat (limited to 'src/plugins/api.c')
-rw-r--r-- | src/plugins/api.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/api.c b/src/plugins/api.c index 2c8983aa..de286d96 100644 --- a/src/plugins/api.c +++ b/src/plugins/api.c @@ -55,6 +55,7 @@ #include "plugins/disco.h" #include "ui/ui.h" #include "ui/window_list.h" +#include "xmpp/roster_list.h" void api_cons_alert(void) @@ -239,6 +240,18 @@ api_get_current_nick(void) } } +char* +api_get_name_from_roster(const char* barejid) +{ + return roster_get_display_name(barejid); +} + +char* +api_get_barejid_from_roster(const char* name) +{ + return roster_barejid_from_name(name); +} + char** api_get_current_occupants(void) { |