mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
/*
|
|
* common.h: IPTV plugin for the Video Disk Recorder
|
|
*
|
|
* See the README file for copyright information and how to reach the author.
|
|
*
|
|
* $Id: common.h,v 1.8 2007/10/09 16:37:16 rahrenbe Exp $
|
|
*/
|
|
|
|
#ifndef __IPTV_COMMON_H
|
|
#define __IPTV_COMMON_H
|
|
|
|
#include <vdr/tools.h>
|
|
|
|
uint16_t ts_pid(const uint8_t *buf);
|
|
uint8_t payload(const uint8_t *tsp);
|
|
|
|
#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
|
|
|
|
#define IPTV_DEVICE_INFO_ALL 0
|
|
#define IPTV_DEVICE_INFO_GENERAL 1
|
|
#define IPTV_DEVICE_INFO_PIDS 2
|
|
#define IPTV_DEVICE_INFO_FILTERS 3
|
|
|
|
#define IPTV_STATS_ACTIVE_PIDS_COUNT 10
|
|
#define IPTV_STATS_ACTIVE_FILTERS_COUNT 10
|
|
|
|
#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];
|
|
|
|
#endif // __IPTV_COMMON_H
|
|
|