recorder/hooks.h
Jan-Piet Mens 0a04a85ac2 luadb
2015-09-25 17:43:17 +02:00

20 lines
413 B
C

#ifndef HOOKS_H_INCLUDED
# define HOOKS_H_INCLUDED
#ifdef WITH_LUA
# include <lua.h>
struct luadata {
char *script; /* Path to Lua script in --lua-script */
lua_State *L; /* The Lua machine */
};
struct luadata *hooks_init(struct udata *ud, char *luascript);
void hooks_exit(struct luadata *, char *reason);
void hooks_hook(struct udata *ud, char *topic, JsonNode *obj);
#endif /* WITH_LUA */
#endif