1 /*
2  * libZRTP SDK library, implements the ZRTP secure VoIP protocol.
3  * Copyright (c) 2006-2009 Philip R. Zimmermann.  All rights reserved.
4  * Contact: http://philzimmermann.com
5  * For licensing and other legal details, see the file zrtp_legal.c.
6  *
7  * Viktor Krykun <v.krikun at zfoneproject.com>
8  */
9 
10 #ifndef __ZRTP_TEST_QUEUE_H__
11 #define __ZRTP_TEST_QUEUE_H__
12 
13 #include "zrtp.h"
14 
15 #define ZRTP_QUEUE_SIZE 2000
16 
17 typedef struct zrtp_queue_elem {
18     char		data[1500];
19     uint32_t	size;
20     mlist_t		_mlist;
21 } zrtp_queue_elem_t;
22 typedef struct zrtp_queue zrtp_queue_t;
23 
24 zrtp_status_t zrtp_test_queue_create(zrtp_queue_t** queue);
25 void zrtp_test_queue_destroy(zrtp_queue_t* queue);
26 void zrtp_test_queue_push(zrtp_queue_t* queue, zrtp_queue_elem_t* elem);
27 zrtp_queue_elem_t* zrtp_test_queue_pop(zrtp_queue_t* queue);
28 
29 #endif  /* __ZRTP_TEST_QUEUE_H__ */
30