src/lua_config.h
author Tero Marttila <terom@fixme.fi>
Fri, 24 Apr 2009 23:01:34 +0300
changeset 153 d35e7cb3a489
parent 106 f00661136ac2
child 217 7728d6ec3abf
permissions -rw-r--r--
implement irc_net reconnect, requires testing
#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 */