]> git.vomp.tv Git - vompserver.git/blob - libdvbmpeg/channel.h
Initial import
[vompserver.git] / libdvbmpeg / channel.h
1 #ifndef _CHANNEL_H
2 #define _CHANNEL_H
3
4 #include <sys/types.h>
5
6 struct channel {
7         int id;
8         char name[81];
9         int type;
10         ushort pnr;
11         ushort vpid;
12         ushort apids[8];
13         ushort apidnum;
14         ushort ac3pid;
15         ushort pcrpid;
16         
17         uint freq;
18         int pol;
19         int qam;
20         uint srate;
21         int fec;
22 };
23
24 #ifdef NEWSTRUCT
25
26 #include <linux/dvb/dmx.h>
27 #include <linux/dvb/frontend.h>
28 #include <linux/dvb/video.h>
29 #include <linux/dvb/audio.h>
30
31 #define DVR_DEV   "/dev/dvb/adapter%d/dvr%d"     
32 #define VIDEO_DEV "/dev/dvb/adapter%d/video%d"
33 #define AUDIO_DEV "/dev/dvb/adapter%d/audio%d"
34 #define DEMUX_DEV "/dev/dvb/adapter%d/demux%d"
35 #define FRONT_DEV "/dev/dvb/adapter%d/frontend%d"
36 #define OSD_DEV   "/dev/dvb/adapter%d/osd%d"
37 #define CA_DEV    "/dev/dvb/adapter%d/ca%d"
38
39 #else
40
41 #include <ost/dmx.h>
42 #include <ost/frontend.h>
43 #include <ost/sec.h>
44 #include <ost/video.h>
45 #include <ost/audio.h>
46
47 #define DVR_DEV   "/dev/ost/dvr%d"
48 #define VIDEO_DEV "/dev/ost/video%d"
49 #define AUDIO_DEV "/dev/ost/audio%d"
50 #define DEMUX_DEV "/dev/ost/demux%d"
51 #define FRONT_DEV "/dev/ost/frontend%d"
52 #define OSD_DEV   "/dev/ost/osd%d"
53 #define CA_DEV   "/dev/ost/ca%d"
54
55 #endif
56
57
58 #endif