summaryrefslogtreecommitdiffstats
path: root/runtime/glbl.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-17 10:11:29 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-17 10:11:29 +0200
commit4824e56aed37b5edffc883cb53c91f0b61c3df62 (patch)
treeb693a073c057a425e8957d763036eec03509e00d /runtime/glbl.h
parent911101ed26292c766eae0b48575e5911b96d2ea7 (diff)
downloadrsyslog-4824e56aed37b5edffc883cb53c91f0b61c3df62.tar.gz
rsyslog-4824e56aed37b5edffc883cb53c91f0b61c3df62.tar.xz
rsyslog-4824e56aed37b5edffc883cb53c91f0b61c3df62.zip
moved "DisableDNS" variable to global data pool
Diffstat (limited to 'runtime/glbl.h')
-rw-r--r--runtime/glbl.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/runtime/glbl.h b/runtime/glbl.h
index 6c519cb7..3116b66b 100644
--- a/runtime/glbl.h
+++ b/runtime/glbl.h
@@ -47,12 +47,14 @@ typedef struct glbl_s {
/* interfaces */
BEGINinterface(glbl) /* name must also be changed in ENDinterface macro! */
uchar* (*GetWorkDir)(void);
- int (*GetDefPFFamily)(void);
- rsRetVal (*SetDefPFFamily)(int);
- int (*GetDropMalPTRMsgs)(void);
- rsRetVal (*SetDropMalPTRMsgs)(int);
- int (*GetOption_DisallowWarning)(void);
- rsRetVal (*SetOption_DisallowWarning)(int);
+#define SIMP_PROP(name, dataType) \
+ dataType (*Get##name)(void); \
+ rsRetVal (*Set##name)(dataType);
+ SIMP_PROP(DefPFFamily, int);
+ SIMP_PROP(DropMalPTRMsgs, int);
+ SIMP_PROP(Option_DisallowWarning, int);
+ SIMP_PROP(DisableDNS, int);
+#undef SIMP_PROP
ENDinterface(glbl)
#define glblCURR_IF_VERSION 1 /* increment whenever you change the interface structure! */