Add libzrtp beta

This commit is contained in:
Viktor Krikun
2010-02-20 18:51:54 +00:00
committed by Travis Cross
parent f61ed4a163
commit 5a61e580b9
251 changed files with 80806 additions and 0 deletions

30
test/pc/zrtp_test_queue.h Normal file
View File

@@ -0,0 +1,30 @@
/*
* 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__ */