private.h 434 B

1234567891011121314151617181920
  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_SCRIPTS_DIR "scripts_dir"
  9. #define LUA_PLUGIN_NAME "lua"
  10. extern char *scripts_path;
  11. void l_print_error(lua_State *, const char *, const char *, int);
  12. int clish_plugin_init_lua(clish_shell_t *shell);
  13. CLISH_PLUGIN_SYM(clish_plugin_lua_action);
  14. #endif /* _PLUGIN_H_ */