diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2010-06-20 18:17:42 +0200 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2010-06-20 18:17:42 +0200 |
commit | 8edd4eb02751bbf45ab2833102dee3707fbbd499 (patch) | |
tree | cbfbebe9c403d896b1788f8fad124ee4d770002d /tntfeatures.h | |
parent | a5f3edc89393f869bfc6cbcadff5b727562df88a (diff) | |
download | vdr-plugin-live-8edd4eb02751bbf45ab2833102dee3707fbbd499.tar.gz vdr-plugin-live-8edd4eb02751bbf45ab2833102dee3707fbbd499.tar.bz2 |
Reaction to a patch sent by Jan Willies for an other problem withcvs-commit-370
tntnet version string. Jan's patch resolved the immediate problem with
regard to the updated version but was not backwards compatible for older
tntnet version.
My changes to the code adressed that problem and added an enhancement
how to deal with that problem in the future.
Diffstat (limited to 'tntfeatures.h')
-rw-r--r-- | tntfeatures.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tntfeatures.h b/tntfeatures.h new file mode 100644 index 0000000..fb5d9c5 --- /dev/null +++ b/tntfeatures.h @@ -0,0 +1,27 @@ +#ifndef VDR_LIVE_TNTFEATURES_H +#define VDR_LIVE_TNTFEATURES_H + +// This header mapps tntversion strings, whose 'structure' changes over time, +// to features of tntnet used in the live plugin. This avoids scattering the +// version check for TNTVERSION over several source files in live. Thus when +// an other change in the structure of the version string was needed then only +// this file needs to be adapted. + +// SSL-Support works from tntnet version 1.6.1 onwards. +#define TNT_SSL_SUPPORT (TNTVERSION >= 16100) + +// Configuration of tntnet from within the source code and not with a +// dedicated config file. +#define TNT_CONFIG_INTERNAL (TNTVERSION >= 16060) + +// Query params are now in tntnet and not in cxxtools +#define TNT_HAS_QUERYPARAMS (TNTVERSION >= 16060) + +// One can request the host part of the request url +#define TNT_HAS_GETHOST (TNTVERSION >= 16060) + +// new version of TNTNET allow the request watchdog to be silenced. +#define TNT_WATCHDOG_SILENCE (TNTVERSION >= 16900) + + +#endif // VDR_LIVE_TNTFEATURES_H |