From 2f684611d488fb3b05680b8d40e1a4d0b3e124fc Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 11 Aug 2002 13:39:00 +0200 Subject: [PATCH] Temporarily made cDevice::ProvidesCa() virtual --- HISTORY | 2 ++ device.h | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 73785efc..c980fa11 100644 --- a/HISTORY +++ b/HISTORY @@ -1402,3 +1402,5 @@ Video Disk Recorder Revision History - Changed the log error message "can't record MPEG1!" to "error in data stream!", since the mentioning of MPEG1 has irritated many people. - Consistently using malloc/free and new/delete (thanks to Andreas Schultz). +- Temporarily made cDevice::ProvidesCa() virtual (Andreas Schultz needs this + in his DXR3 plugin). diff --git a/device.h b/device.h index 4610988d..770cdef1 100644 --- a/device.h +++ b/device.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.h 1.5 2002/08/04 14:02:19 kls Exp $ + * $Id: device.h 1.6 2002/08/11 13:38:13 kls Exp $ */ #ifndef __DEVICE_H @@ -97,7 +97,9 @@ public: bool IsPrimaryDevice(void) const { return this == primaryDevice; } int CardIndex(void) const { return cardIndex; } // Returns the card index of this device (0 ... MAXDEVICES - 1). - int ProvidesCa(int Ca); + virtual int ProvidesCa(int Ca); + //XXX TODO temporarily made this function virtual - until a general + //XXX mechanism has been implemented // Checks whether this device provides the given value in its // caCaps. Returns 0 if the value is not provided, 1 if only this // value is provided, and > 1 if this and other values are provided.