aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/jabber.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-10-10 14:05:42 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-10-10 14:05:42 +0200
commita21a8ac4fbd5a234bc8d31d9d487c74a81383c8a (patch)
treed8445a5409dfe11de56433f59cfa063952734d86 /protocols/jabber/jabber.h
parent6a1128d1333cf79f1ef9fb1f55b1b8fec67caf2a (diff)
Added resource selection (based on priority or time of last message) to
budd_by_jid(), added a full_jid property to easily address that resource without having to rebuild the full JID every time and implemented typing notification shite.
Diffstat (limited to 'protocols/jabber/jabber.h')
-rw-r--r--protocols/jabber/jabber.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/protocols/jabber/jabber.h b/protocols/jabber/jabber.h
index 450c8be7..3535ecc5 100644
--- a/protocols/jabber/jabber.h
+++ b/protocols/jabber/jabber.h
@@ -31,13 +31,26 @@
typedef enum
{
- JFLAG_STREAM_STARTED = 1, /* Set when we detected the beginning of the stream and want to do auth. */
+ JFLAG_STREAM_STARTED = 1, /* Set when we detected the beginning of the stream
+ and want to do auth. */
JFLAG_AUTHENTICATED = 2, /* Set when we're successfully authenticatd. */
- JFLAG_STREAM_RESTART = 4, /* Set when we want to restart the stream (after SASL or TLS). */
- JFLAG_WAIT_SESSION = 8, /* Set if we sent a <session> tag and need a reply before we continue. */
+ JFLAG_STREAM_RESTART = 4, /* Set when we want to restart the stream (after
+ SASL or TLS). */
+ JFLAG_WAIT_SESSION = 8, /* Set if we sent a <session> tag and need a reply
+ before we continue. */
JFLAG_WAIT_BIND = 16, /* ... for <bind> tag. */
+ JFLAG_WANT_TYPING = 32, /* Set if we ever sent a typing notification, this
+ activates all JEP-85 related code. */
} jabber_flags_t;
+typedef enum
+{
+ JBFLAG_PROBED_JEP85 = 1, /* Set this when we sent our probe packet to make
+ sure it gets sent only once. */
+ JBFLAG_DOES_JEP85 = 2, /* Set this when the resource seems to support
+ JEP85 (typing notification shite). */
+} jabber_buddy_flag_t;
+
struct jabber_data
{
struct gaim_connection *gc;
@@ -80,6 +93,7 @@ struct jabber_cache_entry
struct jabber_buddy
{
char *handle;
+ char *full_jid;
char *resource;
int priority;