src/lua_config.h
changeset 106 f00661136ac2
child 217 7728d6ec3abf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/lua_config.h	Wed Apr 01 01:41:08 2009 +0300
@@ -0,0 +1,19 @@
+#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 */