summaryrefslogtreecommitdiff
path: root/nit.h
blob: e93f5bf662b48008769409100ee2fd91227b53e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * nit.h: NIT section filter
 *
 * See the main source file 'vdr.c' for copyright information and
 * how to reach the author.
 *
 * $Id: nit.h 2.0 2007/06/10 08:50:21 kls Exp $
 */

#ifndef __NIT_H
#define __NIT_H

#include "filter.h"

#define MAXNITS 16
#define MAXNETWORKNAME Utf8BufSize(256)

class cNitFilter : public cFilter {
private:

  class cNit {
  public:
    u_short networkId;
    char name[MAXNETWORKNAME];
    bool hasTransponder;
    };

  cSectionSyncer sectionSyncer;
  cNit nits[MAXNITS];
  u_short networkId;
  int numNits;
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