Merge team/russell/frame_caching
[asterisk/asterisk.git] / include / asterisk / chanspy.h
index be4d1ff..dd8d79e 100644 (file)
@@ -49,7 +49,7 @@ enum chanspy_flags {
 };
 
 struct ast_channel_spy_queue {
-       struct ast_frame *head;
+       AST_LIST_HEAD_NOLOCK(, ast_frame) list;
        unsigned int samples;
        unsigned int format;
 };
@@ -58,6 +58,7 @@ struct ast_channel_spy {
        AST_LIST_ENTRY(ast_channel_spy) list;
        ast_mutex_t lock;
        ast_cond_t trigger;
+       struct ast_channel *chan;
        struct ast_channel_spy_queue read_queue;
        struct ast_channel_spy_queue write_queue;
        unsigned int flags;