aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/jabber.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-10-20 21:12:14 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-10-20 21:12:14 +0200
commitdfa41a405f0c80549f6dd5c0c111e3b62ce83b07 (patch)
tree6faaf52a51bf99351fec25ff5ae967511726c825 /protocols/jabber/jabber.h
parentf920d9eb003541245e0fc32a381447cbba8fbea5 (diff)
Now all IQ packets get an ID and cached packets get a "special" ID. This
makes it easier to find out if an event handler has to be called for a reply packet.
Diffstat (limited to 'protocols/jabber/jabber.h')
-rw-r--r--protocols/jabber/jabber.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/protocols/jabber/jabber.h b/protocols/jabber/jabber.h
index cd65d374..4bccd5ed 100644
--- a/protocols/jabber/jabber.h
+++ b/protocols/jabber/jabber.h
@@ -101,11 +101,18 @@ struct jabber_buddy
char *away_message;
time_t last_act;
- int flags;
+ jabber_buddy_flag_t flags;
struct jabber_buddy *next;
};
+/* Prefixes to use for packet IDs (mainly for IQ packets ATM). Usually the
+ first one should be used, but when storing a packet in the cache, a
+ "special" kind of ID is assigned to make it easier later to figure out
+ if we have to do call an event handler for the response packet. */
+#define JABBER_PACKET_ID "BeeP"
+#define JABBER_CACHED_ID "BeeC"
+
/* iq.c */
xt_status jabber_pkt_iq( struct xt_node *node, gpointer data );
int jabber_init_iq_auth( struct gaim_connection *gc );