Browse Source

* subscribe csocket event handler to events

master
Alex 'AdUser' Z 4 years ago
parent
commit
4739f2d01f
  1. 6
      src/daemon.c

6
src/daemon.c

@ -10,6 +10,7 @@
#include "appconfig.h" #include "appconfig.h"
#include "matches.h" #include "matches.h"
#include "ipaddr.h" #include "ipaddr.h"
#include "event.h"
#include "source.h" #include "source.h"
#include "filter.h" #include "filter.h"
#include "backend.h" #include "backend.h"
@ -83,6 +84,10 @@ void
f2b_csocket_cmd_process(const f2b_cmd_t *cmd, f2b_buf_t *res) { f2b_csocket_cmd_process(const f2b_cmd_t *cmd, f2b_buf_t *res) {
UNUSED(cmd); UNUSED(res); return; UNUSED(cmd); UNUSED(res); return;
} }
void
f2b_csocket_event_broadcast(const char *msg) {
UNUSED(msg);
}
#else /* WITH_CSOCKET */ #else /* WITH_CSOCKET */
void void
f2b_csocket_cmd_process(const f2b_cmd_t *cmd, f2b_buf_t *res) { f2b_csocket_cmd_process(const f2b_cmd_t *cmd, f2b_buf_t *res) {
@ -338,6 +343,7 @@ int main(int argc, char *argv[]) {
if (config.csocket) { if (config.csocket) {
f2b_csocket_create(config.csocket); f2b_csocket_create(config.csocket);
f2b_event_handler_register(&f2b_csocket_event_broadcast);
} }
if (config.defaults) if (config.defaults)

Loading…
Cancel
Save