new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / analysisd / output / zeromq.h
diff --git a/src/analysisd/output/zeromq.h b/src/analysisd/output/zeromq.h
new file mode 100644 (file)
index 0000000..2f35696
--- /dev/null
@@ -0,0 +1,29 @@
+/* Copyright (C) 2015 Trend Micro Inc.
+ * All rights reserved.
+ *
+ * This program is a free software; you can redistribute it
+ * and/or modify it under the terms of the GNU General Public
+ * License (version 2) as published by the FSF - Free Software
+ * Foundation.
+ */
+
+#ifdef ZEROMQ_OUTPUT_ENABLED
+
+#ifndef _ZEROMQ_H_
+#define _ZEROMQ_H_
+
+#include "eventinfo.h"
+#include <czmq.h>
+
+void zeromq_output_event(const Eventinfo *lf);
+#if CZMQ_VERSION_MAJOR == 2
+void zeromq_output_start(const char *uri);
+#elif CZMQ_VERSION_MAJOR >= 3
+void zeromq_output_start(const char *uri, const char *client_cert_path, const char *server_cert_path);
+#endif
+void zeromq_output_end(void);
+
+
+#endif /* _ZEROMQ_H_ */
+
+#endif /* ZEROMQ_OUTPUT_ENABLED */