-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.h
39 lines (29 loc) · 811 Bytes
/
common.h
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
#ifndef _PVRINPUT_COMMON_H_
#define _PVRINPUT_COMMON_H_
enum eLogLevel { pvrUNUSED, pvrERROR, pvrINFO, pvrDEBUG1, pvrDEBUG2, pvrDEBUG3 };
#include <linux/videodev2.h>
#include <sys/ioctl.h>
#include <stdarg.h>
#include <vdr/device.h>
#include <vdr/plugin.h>
#if VDRVERSNUM > 10712
#include <vdr/sourceparams.h>
#define PVR_SOURCEPARAMS
#endif
#include "setup.h"
#include "filter.h"
#include "device.h"
#include "global.h"
#include "reader.h"
#include "pvrinput.h"
#include "menu.h"
#include "submenu.h"
#include "sourceparams.h"
#if VDRVERSNUM < 10507
#include "i18n.h"
#endif //VDRVERSNUM < 10507
void log(int level, const char *fmt, ...);
int IOCTL(int fd, int cmd, void *data);
int Percent2IntVal(int Percent, int MinVal, int MaxVal);
int IntVal2Percent(int NumVal, int MinVal, int MaxVal);
#endif