private.h 495 B

1234567891011121314151617181920
  1. /*
  2. * plugin private.h
  3. */
  4. #include "clish/plugin.h"
  5. /*---------------------------------------------------------
  6. * PRIVATE TYPES
  7. *--------------------------------------------------------- */
  8. struct clish_sym_s {
  9. char *name; /* Symbol name */
  10. clish_plugin_fn_t *func; /* Function address */
  11. };
  12. struct clish_plugin_s {
  13. char *file; /* Plugin file name. Must be unique. */
  14. char *name; /* Local plugin name. Can be used in builtin ref. */
  15. lub_list_t *syms; /* List of plugin symbols */
  16. };