queue.h 854 B

1234567891011121314151617181920212223242526272829
  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. #ifndef __ZRTP_TEST_QUEUE_H__
  10. #define __ZRTP_TEST_QUEUE_H__
  11. #include "zrtp.h"
  12. #define ZRTP_QUEUE_SIZE 2000
  13. typedef struct zrtp_queue_elem {
  14. char data[1500];
  15. uint32_t size;
  16. mlist_t _mlist;
  17. } zrtp_queue_elem_t;
  18. typedef struct zrtp_queue zrtp_queue_t;
  19. zrtp_status_t zrtp_test_queue_create(zrtp_queue_t** queue);
  20. void zrtp_test_queue_destroy(zrtp_queue_t* queue);
  21. void zrtp_test_queue_push(zrtp_queue_t* queue, zrtp_queue_elem_t* elem);
  22. zrtp_queue_elem_t* zrtp_test_queue_pop(zrtp_queue_t* queue);
  23. #endif /* __ZRTP_TEST_QUEUE_H__ */