2004-01-11 15:54:37 +01:00
|
|
|
/*
|
|
|
|
* nit.h: NIT section filter
|
|
|
|
*
|
|
|
|
* See the main source file 'vdr.c' for copyright information and
|
|
|
|
* how to reach the author.
|
|
|
|
*
|
2007-06-10 13:02:43 +02:00
|
|
|
* $Id: nit.h 1.3 2007/06/10 08:50:21 kls Exp $
|
2004-01-11 15:54:37 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NIT_H
|
|
|
|
#define __NIT_H
|
|
|
|
|
|
|
|
#include "filter.h"
|
|
|
|
|
2004-01-18 16:31:58 +01:00
|
|
|
#define MAXNITS 16
|
2007-06-10 13:02:43 +02:00
|
|
|
#define MAXNETWORKNAME Utf8BufSize(256)
|
2004-01-18 16:31:58 +01:00
|
|
|
|
2004-01-11 15:54:37 +01:00
|
|
|
class cNitFilter : public cFilter {
|
|
|
|
private:
|
2004-01-18 16:31:58 +01:00
|
|
|
|
|
|
|
class cNit {
|
|
|
|
public:
|
|
|
|
u_short networkId;
|
|
|
|
char name[MAXNETWORKNAME];
|
|
|
|
bool hasTransponder;
|
|
|
|
};
|
|
|
|
|
2004-01-11 15:54:37 +01:00
|
|
|
cSectionSyncer sectionSyncer;
|
2004-01-18 16:31:58 +01:00
|
|
|
cNit nits[MAXNITS];
|
|
|
|
u_short networkId;
|
|
|
|
int numNits;
|
2004-01-11 15:54:37 +01:00
|
|
|
protected:
|
|
|
|
virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length);
|
|
|
|
public:
|
|
|
|
cNitFilter(void);
|
|
|
|
virtual void SetStatus(bool On);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__NIT_H
|