src/lua_config.h
author Tero Marttila <terom@fixme.fi>
Thu, 21 May 2009 17:08:47 +0300
changeset 214 0d5d46ab49d5
parent 106 f00661136ac2
child 217 7728d6ec3abf
permissions -rw-r--r--
merge lua_thread_setup bcak into _lua_thread_start, as everything can be done on the main lua state
#ifndef LUA_CONFIG_H
#define LUA_CONFIG_H

/**
 * @file
 *
 * Read a lua configuration file into a nexus_lua state
 */
#include "error.h"
#include "nexus_lua.h"

/**
 * Load a lua config file at the given path into the nexus's lua state.
 *
 * Path can also be given as NULL to load from stdin.
 */
err_t lua_config_load (struct nexus_lua *lua, const char *path, struct error_info *err);

#endif /* LUA_CONFIG_H */