]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/conf.h
Conf: Introduced cf_set_journalling()
[libucw.git] / ucw / conf.h
index 82bc852f7ca9093f8d8f96664e394d3b1bfa5771..07d83e7b479db72b27c225eef6cb69ec5fa13a4f 100644 (file)
@@ -366,7 +366,12 @@ char *cf_printf(const char *fmt, ...) FORMAT_CHECK(printf,1,2); /** printf() int
  *
  * For error recovery when <<reload,reloading configuration>>.
  ***/
-extern uns cf_need_journal;    /** Is the journal needed? If you do not reload configuration, you set this to 0 and gain a little more performance and free memory. **/
+/**
+ * By default, the configuration mechanism remembers all changes in a journal,
+ * so that the configuration can be rolled back or reloaded. This function
+ * can be used to disable journalling, which saves some memory.
+ **/
+void cf_set_journalling(int enable);
 /**
  * When a block of memory is about to be changed, put the old value
  * into journal with this function. You need to call it from a <<hooks,commit hook>>