freeswitch/libs/libzrtp/test/queue.h
Viktor Krykun 2664e0ee70 Add high-level test engine
Remove some old tests and implement a few test-cases to emulate zrtp
enrollment and sasrelay logic

Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:46 +00:00

30 lines
854 B
C

/*
* libZRTP SDK library, implements the ZRTP secure VoIP protocol.
* Copyright (c) 2006-2009 Philip R. Zimmermann. All rights reserved.
* Contact: http://philzimmermann.com
* For licensing and other legal details, see the file zrtp_legal.c.
*
* Viktor Krykun <v.krikun at zfoneproject.com>
*/
#ifndef __ZRTP_TEST_QUEUE_H__
#define __ZRTP_TEST_QUEUE_H__
#include "zrtp.h"
#define ZRTP_QUEUE_SIZE 2000
typedef struct zrtp_queue_elem {
char data[1500];
uint32_t size;
mlist_t _mlist;
} zrtp_queue_elem_t;
typedef struct zrtp_queue zrtp_queue_t;
zrtp_status_t zrtp_test_queue_create(zrtp_queue_t** queue);
void zrtp_test_queue_destroy(zrtp_queue_t* queue);
void zrtp_test_queue_push(zrtp_queue_t* queue, zrtp_queue_elem_t* elem);
zrtp_queue_elem_t* zrtp_test_queue_pop(zrtp_queue_t* queue);
#endif /* __ZRTP_TEST_QUEUE_H__ */