diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-05-09 22:39:16 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-05-09 22:39:16 +0200 |
commit | 24de2cd600a4e108c24f6f77a5a4d30111fd9918 (patch) | |
tree | b27f97f511fb3d6fd5ce7f8a3fad9687867dbfda /plugins/log | |
parent | a7a0ce278e661bf5d3f2b47556d8c30469d2bd6c (diff) |
server: Add plugin framework
Diffstat (limited to 'plugins/log')
-rw-r--r-- | plugins/log/main.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 <stdio.h> +#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; +} |