summaryrefslogtreecommitdiff
path: root/vdr-vdrmanager/compressor.h
diff options
context:
space:
mode:
authorbju <bju@maxi.fritz.box>2014-01-23 22:05:58 +0100
committerbju <bju@maxi.fritz.box>2014-01-23 22:05:58 +0100
commitb58cae86e52d1f34c8e007e04f2dbc28650d8789 (patch)
tree2fd8c5739f7ab4f76279a61dec6539a8532b486d /vdr-vdrmanager/compressor.h
parent612e0e00b8d55b70d4b83d13fc75e7ddd78d2b58 (diff)
downloadvdr-manager-b58cae86e52d1f34c8e007e04f2dbc28650d8789.tar.gz
vdr-manager-b58cae86e52d1f34c8e007e04f2dbc28650d8789.tar.bz2
- Giving VDRMANAGER_USE_{SSL,GZIP,ZLIB}=0 (default is 1) to the make call
SSL support and the compression methods can be disabled. This eliminates the compile time and also the runtime dependencies. - The Gentoo ebuils uses the USE flags "ssl", "gzip" and "zlib" to control the SSL and compress features.
Diffstat (limited to 'vdr-vdrmanager/compressor.h')
-rw-r--r--vdr-vdrmanager/compressor.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/vdr-vdrmanager/compressor.h b/vdr-vdrmanager/compressor.h
index fbcc14f..933d4c0 100644
--- a/vdr-vdrmanager/compressor.h
+++ b/vdr-vdrmanager/compressor.h
@@ -4,13 +4,15 @@
* Created on: 23.03.2013
* Author: bju
*/
-
#ifndef COMPRESSOR_H_
#define COMPRESSOR_H_
#include <string>
#define COMPRESSION_NONE 0
+
+#if VDRMANAGER_USE_ZLIB || VDRMANAGER_USE_GZIP
+
#define COMPRESSION_ZLIB 1
#define COMPRESSION_GZIP 2
@@ -23,10 +25,17 @@ private:
public:
cCompressor();
virtual ~cCompressor();
+#if VDRMANAGER_USE_GZIP
bool CompressGzip(string text);
+#endif
+#if VDRMANAGER_USE_ZLIB
bool CompressZlib(string text);
+#endif
char * GetData();
size_t getDataSize();
};
+
+#endif
+
#endif /* COMPRESSOR_H_ */