1
0

private.h 690 B

12345678910111213141516171819202122232425
  1. /*
  2. * plugin private.h
  3. */
  4. #include "lub/list.h"
  5. #include "clish/plugin.h"
  6. /*---------------------------------------------------------
  7. * PRIVATE TYPES
  8. *--------------------------------------------------------- */
  9. struct clish_sym_s {
  10. char *name; /* Symbol name */
  11. void *func; /* Function address */
  12. int type; /* Function type */
  13. bool_t permanent; /* If permanent the dry-run can't switch it off */
  14. clish_plugin_t *plugin; /* Parent plugin */
  15. };
  16. struct clish_plugin_s {
  17. char *file; /* Plugin file name. Must be unique. */
  18. char *name; /* Local plugin name. Can be used in builtin ref. */
  19. lub_list_t *syms; /* List of plugin symbols */
  20. void *dlhan; /* Handler of dlopen() */
  21. };