virtual void closeNow()=0;
protected:
int rl;
- char *description;
+ const char *description;
public:
- eAutoInit(int rl, char *description): rl(rl), description(description)
+ eAutoInit(int rl, const char *description): rl(rl), description(description)
{
}
virtual ~eAutoInit();
{
return t;
}
- eAutoInitP1(const T2 &arg, int runl, char *description): eAutoInit(runl, description), arg(arg)
+ eAutoInitP1(const T2 &arg, int runl, const char *description): eAutoInit(runl, description), arg(arg)
{
eInit::add(rl, this);
}
{
return t;
}
- eAutoInitP0(int runl, char *description): eAutoInit(runl, description)
+ eAutoInitP0(int runl, const char *description): eAutoInit(runl, description)
{
eInit::add(rl, this);
}
{
return t;
}
- eAutoInitPtr(int runl, char *description): eAutoInit(runl, description)
+ eAutoInitPtr(int runl, const char *description): eAutoInit(runl, description)
{
eInit::add(rl, this);
}
2-aux
*/
- char *input[] = {"encoder", "scart", "aux"};
+ const char *input[] = {"encoder", "scart", "aux"};
int fd;
void eAVSwitch::setFastBlank(int val)
{
int fd;
- char *fb[] = {"low", "high", "vcr"};
+ const char *fb[] = {"low", "high", "vcr"};
if((fd = open("/proc/stb/avs/0/fb", O_WRONLY)) < 0) {
eDebug("cannot open /proc/stb/avs/0/fb");
1-RGB
2-S-Video
*/
- char *cvbs="cvbs";
- char *rgb="rgb";
- char *svideo="svideo";
- char *yuv="yuv";
+ const char *cvbs="cvbs";
+ const char *rgb="rgb";
+ const char *svideo="svideo";
+ const char *yuv="yuv";
int fd;
if((fd = open("/proc/stb/avs/0/colorformat", O_WRONLY)) < 0) {
5-16:10 PanScan
6-16:9 forced ("letterbox")
*/
- char *aspect[] = {"4:3", "4:3", "any", "16:9", "16:10", "16:10", "16:9", "16:9"};
- char *policy[] = {"letterbox", "panscan", "bestfit", "panscan", "letterbox", "panscan", "letterbox"};
+ const char *aspect[] = {"4:3", "4:3", "any", "16:9", "16:10", "16:10", "16:9", "16:9"};
+ const char *policy[] = {"letterbox", "panscan", "bestfit", "panscan", "letterbox", "panscan", "letterbox"};
int fd;
if((fd = open("/proc/stb/video/aspect", O_WRONLY)) < 0) {
void eAVSwitch::setVideomode(int mode)
{
- char *pal="pal";
- char *ntsc="ntsc";
+ const char *pal="pal";
+ const char *ntsc="ntsc";
if (mode == m_video_mode)
return;
eDebug("cannot open /proc/stb/denc/0/wss");
return;
}
- char *wss[] = {
+ const char *wss[] = {
"off", "auto", "auto(4:3_off)", "4:3_full_format", "16:9_full_format",
"14:9_letterbox_center", "14:9_letterbox_top", "16:9_letterbox_center",
"16:9_letterbox_top", ">16:9_letterbox_center", "14:9_full_format"
eDebug("cannot open /proc/stb/avs/0/sb");
return;
}
- char *sb[] = {"0", "6", "12", "vcr", "auto"};
+ const char *sb[] = {"0", "6", "12", "vcr", "auto"};
write(fd, sb[val], strlen(sb[val]));
// eDebug("set slow blanking to %s", sb[val]);
close(fd);
return -1;
}
-void fillTuple(ePyObject tuple, char *argstring, int argcount, ePyObject service, eServiceEvent *ptr, ePyObject nowTime, ePyObject service_name )
+void fillTuple(ePyObject tuple, const char *argstring, int argcount, ePyObject service, eServiceEvent *ptr, ePyObject nowTime, ePyObject service_name )
{
ePyObject tmp;
int spos=0, tpos=0;
}
}
-int handleEvent(eServiceEvent *ptr, ePyObject dest_list, char* argstring, int argcount, ePyObject service, ePyObject nowTime, ePyObject service_name, ePyObject convertFunc, ePyObject convertFuncArgs)
+int handleEvent(eServiceEvent *ptr, ePyObject dest_list, const char* argstring, int argcount, ePyObject service, ePyObject nowTime, ePyObject service_name, ePyObject convertFunc, ePyObject convertFuncArgs)
{
if (convertFunc)
{
{
ePyObject convertFuncArgs;
int argcount=0;
- char *argstring=NULL;
+ const char *argstring=NULL;
if (!PyList_Check(list))
{
PyErr_SetString(PyExc_StandardError,