diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2008-06-21 01:22:21 +0200 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2008-06-21 01:22:21 +0200 |
commit | 54ac5eaaab8065473fb023c713e383b7fe5d15a9 (patch) | |
tree | 1ab4ffaf5eb3817efb68e419598671f29bc7e940 /setup.h | |
parent | 189d1d07d4971a4d0cc8d0d700c62f541258c33a (diff) | |
download | vdr-plugin-live-54ac5eaaab8065473fb023c713e383b7fe5d15a9.tar.gz vdr-plugin-live-54ac5eaaab8065473fb023c713e383b7fe5d15a9.tar.bz2 |
Changed the definition of tntversion in the LIVE source files.
Now there is a define TNTVERSION set to a number that can be compared in
C oreprocessor 'if' statements. This allows for adding support for tntnet
specific features with evolving tntnet version.
Diffstat (limited to 'setup.h')
-rw-r--r-- | setup.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -14,6 +14,9 @@ namespace vdrlive { +// SSL-Support works from tntnet version 1.6.1 onwards. +#define TNTSSLSUPPORT TNTVERSION >= 1610 + // forward declaration, see below class cMenuSetupLive; @@ -28,7 +31,7 @@ class Setup // commandline int GetServerPort() const { return m_serverPort; } -#ifdef TNTVERS7 +#if TNTSSLSUPPORT int GetServerSslPort() const { return m_serverSslPort; } std::string GetServerSslCert() const { return m_serverSslCert; } #endif @@ -98,7 +101,7 @@ class Setup mutable std::string m_helpString; // commandline options int m_serverPort; -#ifdef TNTVERS7 +#if TNTSSLSUPPORT int m_serverSslPort; std::string m_serverSslCert; static std::string m_configDirectory; @@ -130,7 +133,7 @@ class Setup bool CheckServerPort(); bool CheckServerIps(); -#ifdef TNTVERS7 +#if TNTSSLSUPPORT bool CheckServerSslPort(); #endif }; |