src/spbot/lua_config.h
author Tero Marttila <terom@fixme.fi>
Thu, 28 May 2009 00:35:02 +0300
branchnew-lib-errors
changeset 218 5229a5d098b2
parent 217 src/lua_config.h@7728d6ec3abf
permissions -rw-r--r--
some of spbot and lib compiles
#ifndef SPBOT_LUA_CONFIG_H
#define SPBOT_LUA_CONFIG_H

/**
 * @file
 *
 * Read a lua configuration file into a nexus_lua state
 */
#include <lib/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, error_t *err);

#endif /* LUA_CONFIG_H */