plugin_init.c 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. *
  3. */
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <stdint.h>
  7. #include <faux/faux.h>
  8. #include <klish/kplugin.h>
  9. //#include "private.h"
  10. const uint8_t kplugin_klish_major = KPLUGIN_MAJOR;
  11. const uint8_t kplugin_klish_minor = KPLUGIN_MINOR;
  12. int kplugin_klish_init(kcontext_t *context)
  13. {
  14. /* Add hooks */
  15. /* clish_plugin_add_phook(plugin, clish_hook_access,
  16. "clish_hook_access", CLISH_SYM_TYPE_ACCESS);
  17. clish_plugin_add_phook(plugin, clish_hook_config,
  18. "clish_hook_config", CLISH_SYM_TYPE_CONFIG);
  19. clish_plugin_add_phook(plugin, clish_hook_log,
  20. "clish_hook_log", CLISH_SYM_TYPE_LOG);
  21. */
  22. /* Add builtin syms */
  23. /* clish_plugin_add_psym(plugin, clish_close, "clish_close");
  24. clish_plugin_add_psym(plugin, clish_overview, "clish_overview");
  25. clish_plugin_add_psym(plugin, clish_source, "clish_source");
  26. clish_plugin_add_psym(plugin, clish_source_nostop, "clish_source_nostop");
  27. clish_plugin_add_psym(plugin, clish_history, "clish_history");
  28. clish_plugin_add_psym(plugin, clish_nested_up, "clish_nested_up");
  29. clish_plugin_add_psym(plugin, clish_nop, "clish_nop");
  30. clish_plugin_add_psym(plugin, clish_wdog, "clish_wdog");
  31. clish_plugin_add_psym(plugin, clish_macros, "clish_macros");
  32. clish_plugin_add_osym(plugin, clish_script, "clish_script");
  33. clish_plugin_add_psym(plugin, clish_machine_interface, "clish_machine_interface");
  34. clish_plugin_add_psym(plugin, clish_human_interface, "clish_human_interface");
  35. clish_plugin_add_psym(plugin, clish_print_script, "clish_print_script");
  36. clish_plugin_add_psym(plugin, clish_print_var, "clish_print_var");
  37. */
  38. context = context; // Happy compiler
  39. return 0;
  40. }