From: Lars Op den Kamp Date: Thu, 3 Nov 2011 22:05:26 +0000 (+0100) Subject: cec: made the Get...Version() methods const X-Git-Tag: upstream/2.2.0~1^2~121 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=99e89a5b958d02ceb4c3299bdbdd97d426487a58;p=deb_libcec.git cec: made the Get...Version() methods const --- diff --git a/include/cec.h b/include/cec.h index 58ea58f..19bc4d3 100644 --- a/include/cec.h +++ b/include/cec.h @@ -73,17 +73,17 @@ namespace CEC /*! * @see cec_get_min_lib_version */ - virtual int8_t GetMinLibVersion(void) = 0; + virtual int8_t GetMinLibVersion(void) const = 0; /*! * @see cec_get_lib_version_major */ - virtual int8_t GetLibVersionMajor(void) = 0; + virtual int8_t GetLibVersionMajor(void) const = 0; /*! * @see cec_get_lib_version_minor */ - virtual int8_t GetLibVersionMinor(void) = 0; + virtual int8_t GetLibVersionMinor(void) const = 0; /*! * @see cec_get_next_log_message diff --git a/src/lib/LibCEC.h b/src/lib/LibCEC.h index 5d11f11..0b43aa4 100644 --- a/src/lib/LibCEC.h +++ b/src/lib/LibCEC.h @@ -56,9 +56,9 @@ namespace CEC virtual bool PingAdapter(void); virtual bool StartBootloader(void); - virtual int8_t GetMinLibVersion(void) { return CEC_MIN_LIB_VERSION; }; - virtual int8_t GetLibVersionMajor(void) { return CEC_LIB_VERSION_MAJOR; }; - virtual int8_t GetLibVersionMinor(void) { return CEC_LIB_VERSION_MINOR; }; + virtual int8_t GetMinLibVersion(void) const{ return CEC_MIN_LIB_VERSION; }; + virtual int8_t GetLibVersionMajor(void) const { return CEC_LIB_VERSION_MAJOR; }; + virtual int8_t GetLibVersionMinor(void) const { return CEC_LIB_VERSION_MINOR; }; virtual bool GetNextLogMessage(cec_log_message *message); virtual bool GetNextKeypress(cec_keypress *key);