diff options
author | Matt O'Gorman <mogorman@digium.com> | 2006-06-09 16:08:33 +0000 |
---|---|---|
committer | Matt O'Gorman <mogorman@digium.com> | 2006-06-09 16:08:33 +0000 |
commit | 124357f3008eadd055afc82b39c7871c85a78161 (patch) | |
tree | 2bb21d4ad0edf1e21155ead9abc7b43f317643d1 /include/asterisk | |
parent | bcf82f32d5c08414eb2121d5b472c70c50e87bd6 (diff) |
convert one of my linked lists to ast_linklist
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/jabber.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asterisk/jabber.h b/include/asterisk/jabber.h index e67c01bc3..f4ea1c55a 100644 --- a/include/asterisk/jabber.h +++ b/include/asterisk/jabber.h @@ -21,6 +21,7 @@ #include <iksemel.h> #include "asterisk/astobj.h" +#include "asterisk/linkedlists.h" enum aji_state { AJI_DISCONNECTED = 0, @@ -71,7 +72,7 @@ struct aji_message { char *message; char id[25]; time_t arrived; - struct aji_message *next; + AST_LIST_ENTRY(aji_message) list; }; struct aji_buddy { @@ -121,8 +122,7 @@ struct aji_client { unsigned int flags; enum aji_type component; struct aji_buddy_container buddies; - ast_mutex_t message_lock; - struct aji_message *messages; + AST_LIST_HEAD(messages,aji_message) messages; void *jingle; pthread_t thread; }; |