private.h 446 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. 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. CLISH_PLUGIN_FINI(clish_plugin_lua_fini);
  14. #endif /* _PLUGIN_H_ */