Support legacy delayed delivery (XEP-0091) as well as XEP-0203

This commit is contained in:
James Booth
2012-11-18 18:02:55 +00:00
parent 4a2004e5a8
commit a847ad5603
3 changed files with 41 additions and 13 deletions

View File

@@ -23,6 +23,7 @@
#ifndef STANZA_H
#define STANZA_H
#include <glib.h>
#include <strophe.h>
#define STANZA_NAME_ACTIVE "active"
@@ -62,6 +63,7 @@
#define STANZA_ATTR_JID "jid"
#define STANZA_ATTR_NAME "name"
#define STANZA_ATTR_SUBSCRIPTION "subscription"
#define STANZA_ATTR_XMLNS "xmlns"
#define STANZA_TEXT_AWAY "away"
#define STANZA_TEXT_DND "dnd"
@@ -94,4 +96,6 @@ xmpp_stanza_t* stanza_create_ping_iq(xmpp_ctx_t *ctx);
gboolean stanza_contains_chat_state(xmpp_stanza_t *stanza);
gboolean stanza_get_delay(xmpp_stanza_t * const stanza, GTimeVal *tv_stamp);
#endif