trtp_rtcp_report_bye.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (C) 2012 Doubango Telecom <http://www.doubango.org>
  3. *
  4. * Contact: Mamadou Diop <diopmamadou(at)doubango.org>
  5. *
  6. * This file is part of Open Source Doubango Framework.
  7. *
  8. * DOUBANGO is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * DOUBANGO is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with DOUBANGO.
  20. *
  21. */
  22. #ifndef TINYRTP_RTCP_REPORT_BYE_H
  23. #define TINYRTP_RTCP_REPORT_BYE_H
  24. #include "tinyrtp_config.h"
  25. #include "tinyrtp/rtcp/trtp_rtcp_packet.h"
  26. typedef struct trtp_rtcp_report_bye_s {
  27. TRTP_DECLARE_RTCP_PACKET;
  28. uint32_t *ssrc_list;
  29. trtp_rtcp_packets_L_t* packets;
  30. }
  31. trtp_rtcp_report_bye_t;
  32. trtp_rtcp_report_bye_t* trtp_rtcp_report_bye_create_null();
  33. trtp_rtcp_report_bye_t* trtp_rtcp_report_bye_create(struct trtp_rtcp_header_s* header);
  34. trtp_rtcp_report_bye_t* trtp_rtcp_report_bye_create_2(uint32_t ssrc);
  35. trtp_rtcp_report_bye_t* trtp_rtcp_report_bye_deserialize(const void* data, tsk_size_t size);
  36. int trtp_rtcp_report_bye_serialize_to(const trtp_rtcp_report_bye_t* self, void* data, tsk_size_t size);
  37. tsk_size_t trtp_rtcp_report_bye_get_size(const trtp_rtcp_report_bye_t* self);
  38. #endif /* TINYRTP_RTCP_REPORT_BYE_H */