[vdr] femon cleanup/SVDRP enhancement

Frank Schmirler vdr at schmirler.de
Tue Jun 20 08:33:28 CEST 2006


On Mon, 19 Jun 2006 20:52:33 +0200, Herbert Poetzl wrote
> +  else if (strcasecmp(Command, "INFO") == 0) {
> +     cString str = getFrontendInfo(atoi(Option));

I like the possibility to pass the device index as option. However it should
be optional. I'd suggest:

cString str = getFrontendInfo(*Option ? atoi(Option) :
cDevice::ActualDevice()->CardIndex());

Would be nice if all commands worked that way...

Cheers,
Frank



More information about the vdr mailing list