diff options
author | defanor <defanor@uberspace.net> | 2020-11-17 19:10:46 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2020-11-17 19:10:46 +0300 |
commit | bef4b0a6699f53ff1c73a3dfdd6997967913e12b (patch) | |
tree | ac612d9c1122afed9d3f6c7db709a2bab6b9dd48 /src/rexmpp.h | |
parent | 48542332c351d21706e61abbd9cb50ce02afac2d (diff) |
Support XEP-0163 (PEP) and XEP-0172 (User Nickname)
Diffstat (limited to 'src/rexmpp.h')
-rw-r--r-- | src/rexmpp.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rexmpp.h b/src/rexmpp.h index 8b5632a..53f2cba 100644 --- a/src/rexmpp.h +++ b/src/rexmpp.h @@ -241,6 +241,8 @@ struct rexmpp int manage_roster; const char *roster_cache_file; int track_roster_presence; + int track_roster_events; + int nick_notifications; /* Resource limits. */ uint32_t stanza_queue_size; @@ -260,6 +262,7 @@ struct rexmpp xmlNodePtr roster_items; char *roster_ver; xmlNodePtr roster_presence; + xmlNodePtr roster_events; /* Other dynamic data. */ xmlNodePtr disco_info; @@ -445,6 +448,15 @@ xmlNodePtr rexmpp_xml_add_id (rexmpp_t *s, xmlNodePtr node); void rexmpp_log (rexmpp_t *s, int priority, const char *format, ...); /** + @brief Gets an appropriate display name for a JID. + @param[in] s ::rexmpp + @param[in] jid_str A JID string. + @returns A newly allocated null-terminated string, or NULL on + error. +*/ +char *rexmpp_get_name (rexmpp_t *s, const char *jid_str); + +/** @brief Matches an XML node against a namespace and an element name. @param[in] node An XML node to match. @param[in] namespace An XML namespace. Can be NULL (matches |