summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 336c207)
raw | patch | inline | side by side (parent: 336c207)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 14 Aug 2016 09:59:03 +0000 (11:59 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 14 Aug 2016 09:59:03 +0000 (11:59 +0200) |
src/lua.c | patch | blob | history |
diff --git a/src/lua.c b/src/lua.c
index b89c824001f6bffc1770ae80914a8145e7f9484d..a3f2037e2ffb11b6967ed9e3a76a2501a464aca1 100644 (file)
--- a/src/lua.c
+++ b/src/lua.c
int callback_id;
} clua_callback_data_t;
-typedef struct {
- const char *name;
- lua_CFunction func;
-} lua_c_function_t;
-
static char base_path[PATH_MAX];
static lua_script_t *scripts;
return 0;
} /* }}} int lua_cb_register_write */
-static lua_c_function_t lua_c_functions[] = {
+static luaL_Reg lua_c_functions[] = {
{"log_debug", lua_cb_log_debug},
{"log_error", lua_cb_log_error},
{"log_info", lua_cb_log_info},