1
0

anplug.c 274 B

12345678910111213141516
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <clish/plugin.h>
  4. int anplug_fn(clish_context_t *context, char **out)
  5. {
  6. printf("anplug: Another plugin\n");
  7. return 0;
  8. }
  9. int clish_plugin_init(clish_plugin_t *plugin)
  10. {
  11. clish_plugin_add_sym(plugin, anplug_fn, "an_fn");
  12. }