From 24de2cd600a4e108c24f6f77a5a4d30111fd9918 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Tue, 9 May 2017 22:39:16 +0200 Subject: server: Add plugin framework --- plugins/log/main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 plugins/log/main.c (limited to 'plugins/log') diff --git a/plugins/log/main.c b/plugins/log/main.c new file mode 100644 index 0000000..b931d12 --- /dev/null +++ b/plugins/log/main.c @@ -0,0 +1,11 @@ +#include +#include "plugin_client_header.h" + + +static void eventfunc(const struct plugin_event *event){ + printf("type = %d\n",event->type); +} + +plugin_event_func_t* plugin_init_func(void){ + return eventfunc; +} -- cgit v1.2.3-70-g09d2