plugin_init.c 311 B

1234567891011121314151617
  1. #include "private.h"
  2. CLISH_PLUGIN_INIT
  3. {
  4. char *conf = clish_plugin__get_conf(plugin);
  5. if (conf)
  6. scripts_path = conf;
  7. clish_plugin_init_lua((clish_shell_t *)clish_shell);
  8. clish_plugin__set_name(plugin, "lua_hooks");
  9. clish_plugin_add_sym(plugin, clish_plugin_lua_action, "hook_action");
  10. return 0;
  11. }