For the loggers that we allow only one instance for: tls, ssh, drop, we
track active loggers through Output*Enable functions. Add Disable
functions to mirror this. They are to be called from the shutdown funcs
those loggers use.
return 0;
}
+void OutputDropLoggerDisable(void) {
+ if (drop_loggers)
+ drop_loggers--;
+}
+
static int tls_loggers = 0;
int OutputTlsLoggerEnable(void) {
return 0;
}
+void OutputTlsLoggerDisable(void) {
+ if (tls_loggers)
+ tls_loggers--;
+}
+
static int ssh_loggers = 0;
int OutputSshLoggerEnable(void) {
ssh_loggers++;
return 0;
}
+
+void OutputSshLoggerDisable(void) {
+ if (ssh_loggers)
+ ssh_loggers--;
+}
void OutputDeregisterAll(void);
int OutputDropLoggerEnable(void);
+void OutputDropLoggerDisable(void);
+
int OutputTlsLoggerEnable(void);
+void OutputTlsLoggerDisable(void);
+
int OutputSshLoggerEnable(void);
+void OutputSshLoggerDisable(void);
#endif /* ! __OUTPUT_H__ */