/*
* Main stuff for libcitadel
*
- * Copyright (c) 1987-2011 by the citadel.org team
+ * Copyright (c) 1987-2013 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
extern int EnableSplice;
extern int BaseStrBufSize;
+extern int ZLibCompressionRatio;
+
char *libcitadel_version_string(void) {
return "libcitadel(unnumbered)";
}
void StartLibCitadel(size_t basesize)
{
- const char *Splice;
+ const char *envvar;
+
BaseStrBufSize = basesize;
- Splice = getenv("LIBCITADEL_ENABLE_SPLICE");
- if (Splice != NULL)
- EnableSplice = atol(Splice);
+ envvar = getenv("LIBCITADEL_ENABLE_SPLICE");
+ if (envvar != NULL)
+ EnableSplice = atol(envvar);
+
+ envvar = getenv("LIBCITADEL_ZLIB_LEVEL");
+ if (envvar != NULL)
+ ZLibCompressionRatio = atol(envvar);
}
void ShutDownLibCitadel(void)