]> code.citadel.org Git - citadel.git/blobdiff - libcitadel/lib/libcitadel.c
Make the swap buffer content function publically available.
[citadel.git] / libcitadel / lib / libcitadel.c
index acb082bef18705c33a3339fa6d5a8afe87b7ee2d..51f0f1fb04632362b4f4c49d21708d19822a41fa 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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
@@ -48,6 +48,8 @@ ConstStr RoomNetCfgStrs[maxRoomNetCfg] = {
 
 extern int EnableSplice;
 extern int BaseStrBufSize;
+extern int ZLibCompressionRatio;
+
 char *libcitadel_version_string(void) {
        return "libcitadel(unnumbered)";
 }
@@ -58,11 +60,16 @@ int libcitadel_version_number(void) {
 
 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)