1
0

private.h 557 B

12345678910111213141516171819202122
  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. clish_plugin_fn_t *func; /* Function address */
  12. };
  13. struct clish_plugin_s {
  14. char *file; /* Plugin file name. Must be unique. */
  15. char *name; /* Local plugin name. Can be used in builtin ref. */
  16. lub_list_t *syms; /* List of plugin symbols */
  17. void *dlhan; /* Handler of dlopen() */
  18. };