atsc_header.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright (c) 2013 - Andre Roth <neolynx@gmail.com>
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation version 2
  7. * of the License.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  18. *
  19. */
  20. #ifndef _ATSC_HEADER_H
  21. #define _ATSC_HEADER_H
  22. /**
  23. * @file atsc_header.h
  24. * @ingroup dvb_table
  25. * @brief Provides some common ATSC stuff
  26. * @copyright GNU General Public License version 2 (GPLv2)
  27. * @author Andre Roth
  28. *
  29. * @par Bug Report
  30. * Please submit bug reports and patches to linux-media@vger.kernel.org
  31. */
  32. #include <stdint.h>
  33. #include <unistd.h> /* ssize_t */
  34. #include <libdvbv5/header.h>
  35. /**
  36. * @def ATSC_BASE_PID
  37. * @brief ATSC PID for the Program and System Information Protocol
  38. * @ingroup dvb_table
  39. */
  40. #define ATSC_BASE_PID 0x1FFB
  41. #ifndef _DOXYGEN
  42. /* Deprecated, as it causes troubles with doxygen */
  43. #define ATSC_HEADER() \
  44. struct dvb_table_header header; \
  45. uint8_t protocol_version; \
  46. #define ATSC_TABLE_HEADER_PRINT(_parms, _table) \
  47. dvb_table_header_print(_parms, &_table->header); \
  48. dvb_loginfo("| protocol_version %d", _table->protocol_version); \
  49. #endif /* _DOXYGEN */
  50. #endif /* _ATSC_HEADER_H */