vdr-plugin-iptv/common.h

44 lines
1002 B
C
Raw Normal View History

2007-09-12 19:28:59 +02:00
/*
* common.h: IPTV plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
2007-10-07 22:08:44 +02:00
* $Id: common.h,v 1.5 2007/10/07 20:08:44 rahrenbe Exp $
2007-09-12 19:28:59 +02:00
*/
#ifndef __IPTV_COMMON_H
#define __IPTV_COMMON_H
#include <vdr/tools.h>
2007-10-05 22:01:24 +02:00
uint16_t ts_pid(const uint8_t *buf);
uint8_t payload(const uint8_t *tsp);
2007-09-12 19:28:59 +02:00
#ifdef DEBUG
#define debug(x...) dsyslog("IPTV: " x);
#define error(x...) esyslog("IPTV: " x);
#else
#define debug(x...) ;
#define error(x...) esyslog("IPTV: " x);
#endif
2007-10-07 22:08:44 +02:00
#define IPTV_STATS_UNIT_IN_BYTES 0
#define IPTV_STATS_UNIT_IN_KBYTES 1
#define IPTV_STATS_UNIT_IN_BITS 2
#define IPTV_STATS_UNIT_IN_KBITS 3
#define IPTV_STATS_UNIT_COUNT 4
#define SECTION_FILTER_TABLE_SIZE 7
typedef struct _section_filter_table_type {
const char *description;
u_short pid;
u_char tid;
u_char mask;
} section_filter_table_type;
extern const section_filter_table_type section_filter_table[SECTION_FILTER_TABLE_SIZE];
2007-09-12 19:28:59 +02:00
#endif // __IPTV_COMMON_H