plugin_init.c 276 B

12345678910111213
  1. #include "private.h"
  2. CLISH_PLUGIN_INIT
  3. {
  4. clish_plugin_init_lua((clish_shell_t *)clish_shell);
  5. clish_plugin_add_phook(plugin, clish_plugin_lua_fini, "hook_fini",
  6. CLISH_SYM_TYPE_FINI);
  7. clish_plugin_add_sym(plugin, clish_plugin_lua_action, "hook_action");
  8. return 0;
  9. }