plugin_init.c 341 B

12345678910111213
  1. #include "hook.h"
  2. CLISH_PLUGIN_INIT
  3. {
  4. clish_plugin_add_phook(plugin, clish_plugin_hook_init, "hook_init",
  5. CLISH_SYM_TYPE_INIT);
  6. clish_plugin_add_phook(plugin, clish_plugin_hook_fini, "hook_fini",
  7. CLISH_SYM_TYPE_FINI);
  8. clish_plugin_add_phook(plugin, clish_plugin_hook_action, "hook_action",
  9. CLISH_SYM_TYPE_ACTION);
  10. return 0;
  11. }