1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-16 00:00:02 +01:00
VILLASnode/plugins/hooks/example_hook.c

11 lines
281 B
C
Raw Normal View History

2016-07-26 22:07:37 +02:00
#include <villas/hooks.h>
#include <villas/log.h>
static int hook_example(struct hook *h, int when, struct hook_info *j)
2016-07-26 22:07:37 +02:00
{
info("Hello world from example hook!");
return 0;
}
REGISTER_HOOK("example", "This is just a simple example hook", 99, 0, hook_example, HOOK_PATH_START)