diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-07-01 09:41:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-01 09:41:07 +0200 |
commit | aae252e1b54c147bcf9404031e7862c0e955f571 (patch) | |
tree | 66844e760babe0b15f561b41165d1db8cb9d9ca6 /apidocs/c/profapi.h | |
parent | dc79c514be403cff93a1165b47d456182a03fd05 (diff) | |
parent | e4bf7335d889d82dedf962f2a2590f1a1b7455b6 (diff) | |
download | profani-tty-aae252e1b54c147bcf9404031e7862c0e955f571.tar.gz |
Merge pull request #1529 from dustinlagoy/access-roster-from-plugins
Access roster from plugins
Diffstat (limited to 'apidocs/c/profapi.h')
-rw-r--r-- | apidocs/c/profapi.h | 12 |
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. */ |