tdav_producer_t140.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 2012 Doubango Telecom <http://www.doubango.org>
  3. *
  4. * This file is part of Open Source Doubango Framework.
  5. *
  6. * DOUBANGO is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * DOUBANGO is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with DOUBANGO.
  18. *
  19. */
  20. /**@file tdav_producer_t140.h
  21. * @brief Producer for T.140 protocol (RFC 4103)
  22. */
  23. #ifndef TINYDAV_PRODUCER_T140_H
  24. #define TINYDAV_PRODUCER_T140_H
  25. #include "tinydav_config.h"
  26. #include "tinymedia/tmedia_producer.h"
  27. TDAV_BEGIN_DECLS
  28. #define TDAV_PRODUCER_T140(self) ((tdav_producer_t140_t*)(self))
  29. typedef struct tdav_producer_t140_s {
  30. TMEDIA_DECLARE_PRODUCER;
  31. tsk_bool_t started;
  32. }
  33. tdav_producer_t140_t;
  34. int tdav_producer_send_data(tdav_producer_t140_t* self, enum tmedia_t140_data_type_e data_type, const void* data_ptr, unsigned data_size);
  35. TINYDAV_GEXTERN const tmedia_producer_plugin_def_t *tdav_producer_t140_plugin_def_t;
  36. TDAV_END_DECLS
  37. #endif /* TINYDAV_PRODUCER_T140_H */