private.h 396 B

12345678910111213141516171819
  1. #ifndef _PLUGIN_H_
  2. #define _PLUGIN_H_
  3. #include <clish/shell.h>
  4. #include <lua.h>
  5. #include <lualib.h>
  6. #include <lauxlib.h>
  7. #define LUA_UDATA "lua_state"
  8. #define LUA_PLUGIN_NAME "lua"
  9. extern char *scripts_path;
  10. void l_print_error(lua_State *, const char *, const char *, int);
  11. int clish_plugin_init_lua(clish_shell_t *shell);
  12. CLISH_PLUGIN_SYM(clish_plugin_lua_action);
  13. #endif /* _PLUGIN_H_ */