diff options
author | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-07 22:43:20 +0000 |
---|---|---|
committer | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-07 22:43:20 +0000 |
commit | 94d99e5654cb5a008ae7c7d94ecba12fac282be5 (patch) | |
tree | 934786e6e05c8aa48458b53e07f4ff1a50714dd8 /include/asterisk/jabber.h | |
parent | c3a90e6c79d94a70cc0c5437860a9b6ba4e5c337 (diff) |
solves some bugs with memory allocation, and adds
a message stack.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32918 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/jabber.h')
-rw-r--r-- | include/asterisk/jabber.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asterisk/jabber.h b/include/asterisk/jabber.h index 8b053623d..e67c01bc3 100644 --- a/include/asterisk/jabber.h +++ b/include/asterisk/jabber.h @@ -66,6 +66,14 @@ struct aji_resource { struct aji_resource *next; }; +struct aji_message { + char *from; + char *message; + char id[25]; + time_t arrived; + struct aji_message *next; +}; + struct aji_buddy { ASTOBJ_COMPONENTS(struct aji_buddy); char user[160]; @@ -108,10 +116,13 @@ struct aji_client { int keepalive; int allowguest; int timeout; + int message_timeout; int authorized; unsigned int flags; enum aji_type component; struct aji_buddy_container buddies; + ast_mutex_t message_lock; + struct aji_message *messages; void *jingle; pthread_t thread; }; |