mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
Add libzrtp beta
This commit is contained in:
committed by
Travis Cross
parent
f61ed4a163
commit
5a61e580b9
30
test/pc/zrtp_test_queue.h
Normal file
30
test/pc/zrtp_test_queue.h
Normal 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__ */
|
Reference in New Issue
Block a user