about summary refs log tree commit diff stats
path: root/apidocs/c/profapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'apidocs/c/profapi.h')
-rw-r--r--apidocs/c/profapi.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/apidocs/c/profapi.h b/apidocs/c/profapi.h
index a1578739..4d61ca7d 100644
--- a/apidocs/c/profapi.h
+++ b/apidocs/c/profapi.h
@@ -139,6 +139,18 @@ Retrieve the users nickname in a chat room, when in a chat room window.
 char* prof_get_current_nick(void);
 
 /**
+Retrieve the nickname for a given barejid if it is in the roster.
+@return the users nickname e.g. "eddie", or the input barejid if it is not 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.
 */