[vdr] Concerns about changing the API-definition of 'cStatus::Replaying()' and 'cStatus::Recording()' of VDR?

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Sun Dec 18 17:53:33 CET 2005


Wolfgang Rohdewald wrote:
> On Sonntag 18 Dezember 2005 17:40, Klaus Schmidinger wrote:
> 
>>   void Recording(const cDevice *Device, const char *Name, const char *FileName)
>>
>>which extends the interface to hold a second parameter that contains
>>the actual file name (or NULL, if there is none), but would break plugins
>>st compile time.
> 
> 
> maybe 
> 
> void Recording(const cDevice *Device, const char *Name, const char *FileName=0)
> 
> would reduce the needed plugin changes?

No, because this is a virtual function the plugin must actually
_implement_.

The related functions

static void MsgRecording(const cDevice *Device, const char *Name);
static void MsgReplaying(const cControl *Control, const char *Name);

can, of course, have a default value for FileName.

Klaus




More information about the vdr mailing list