From 2350a94c4411635f15173ec9c7964ea89e3fb2b1 Mon Sep 17 00:00:00 2001 From: Dustin Lagoy Date: Thu, 29 Apr 2021 13:50:57 -0400 Subject: Add plugin get_barejid_from_roster function --- apidocs/c/profapi.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apidocs/c/profapi.h') diff --git a/apidocs/c/profapi.h b/apidocs/c/profapi.h index a8c8673c..04da8a4e 100644 --- a/apidocs/c/profapi.h +++ b/apidocs/c/profapi.h @@ -144,6 +144,12 @@ Retrieve the nickname for a given barejid if it is in the roster. */ char* prof_get_name_from_roster(const char *barejid); +/** +Retrieve the barejid for a given nickname if it is in the roster. +@return the users barejid e.g. "eddie@server.tld", or NULLL if the nickname is not in the roster. +*/ +char* prof_get_barejid_from_roster(const char *name); + /** Retrieve nicknames of all occupants in a chat room, when in a chat room window. @return nicknames of all occupants in the current room or an empty list if not in a chat room window. -- cgit 1.4.1-2-gfad0