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-10 21:41:10 +02:00
|
|
|
* $Id: common.h,v 1.9 2007/10/10 19:41:10 rahrenbe Exp $
|
2007-09-12 19:28:59 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __IPTV_COMMON_H
|
|
|
|
#define __IPTV_COMMON_H
|
|
|
|
|
|
|
|
#include <vdr/tools.h>
|
|
|
|
|
|
|
|
#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-09 01:51:58 +02:00
|
|
|
#define IPTV_DEVICE_INFO_ALL 0
|
|
|
|
#define IPTV_DEVICE_INFO_GENERAL 1
|
|
|
|
#define IPTV_DEVICE_INFO_PIDS 2
|
|
|
|
#define IPTV_DEVICE_INFO_FILTERS 3
|
2007-10-07 22:08:44 +02:00
|
|
|
|
2007-10-09 01:51:58 +02:00
|
|
|
#define IPTV_STATS_ACTIVE_PIDS_COUNT 10
|
|
|
|
#define IPTV_STATS_ACTIVE_FILTERS_COUNT 10
|
2007-10-08 00:54:09 +02:00
|
|
|
|
2007-10-09 01:51:58 +02:00
|
|
|
#define SECTION_FILTER_TABLE_SIZE 7
|
2007-10-06 02:02:50 +02:00
|
|
|
|
2007-10-10 21:41:10 +02:00
|
|
|
uint16_t ts_pid(const uint8_t *buf);
|
|
|
|
uint8_t payload(const uint8_t *tsp);
|
|
|
|
const char *id_pid(const u_short Pid);
|
|
|
|
|
|
|
|
struct section_filter_table_type {
|
2007-10-06 02:02:50 +02:00
|
|
|
const char *description;
|
2007-10-10 21:41:10 +02:00
|
|
|
const char *tag;
|
2007-10-06 02:02:50 +02:00
|
|
|
u_short pid;
|
|
|
|
u_char tid;
|
|
|
|
u_char mask;
|
2007-10-10 21:41:10 +02:00
|
|
|
};
|
2007-10-06 02:02:50 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|