summaryrefslogtreecommitdiffstats
path: root/runtime/rsconf.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-04-21 11:37:26 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-04-21 11:37:26 +0200
commit82fa17ae5621849790eb39ed046d58333ede347c (patch)
tree2774719e59a9e9f581f04a5d2796028c666a1982 /runtime/rsconf.h
parent28e750eebd8ccb5655bdc18693b3b7c9d9ad826b (diff)
downloadrsyslog-82fa17ae5621849790eb39ed046d58333ede347c.tar.gz
rsyslog-82fa17ae5621849790eb39ed046d58333ede347c.tar.bz2
rsyslog-82fa17ae5621849790eb39ed046d58333ede347c.zip
step: begun to create a "load" interface in rsconf
Diffstat (limited to 'runtime/rsconf.h')
-rw-r--r--runtime/rsconf.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/rsconf.h b/runtime/rsconf.h
index 68325852..3302e990 100644
--- a/runtime/rsconf.h
+++ b/runtime/rsconf.h
@@ -99,13 +99,21 @@ BEGINinterface(rsconf) /* name must also be changed in ENDinterface macro! */
rsRetVal (*Construct)(rsconf_t **ppThis);
rsRetVal (*ConstructFinalize)(rsconf_t __attribute__((unused)) *pThis);
rsRetVal (*Destruct)(rsconf_t **ppThis);
+ rsRetVal (*Load)(rsconf_t **ppThis, uchar *confFile);
+ rsRetVal (*Activate)(rsconf_t *ppThis);
ENDinterface(rsconf)
-#define rsconfCURR_IF_VERSION 1 /* increment whenever you change the interface above! */
+// TODO: switch version to 1 for first "complete" version!!!! 2011-04-20
+#define rsconfCURR_IF_VERSION 0 /* increment whenever you change the interface above! */
/* prototypes */
PROTOTYPEObj(rsconf);
+/* globally-visible external data */
+extern rsconf_t *runConf;/* the currently running config */
+extern rsconf_t *loadConf;/* the config currently being loaded (no concurrent config load supported!) */
+
+
/* some defaults (to be removed?) */
#define DFLT_bLogStatusMsgs 1