private.h 919 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * command.h
  3. */
  4. #include "clish/command.h"
  5. /*---------------------------------------------------------
  6. * PRIVATE TYPES
  7. *--------------------------------------------------------- */
  8. struct clish_command_s {
  9. lub_bintree_node_t bt_node;
  10. char *name;
  11. char *text;
  12. clish_paramv_t *paramv;
  13. char *action;
  14. clish_view_t *view;
  15. char *viewid;
  16. char *detail;
  17. char *escape_chars;
  18. clish_param_t *args;
  19. const struct clish_command_s * link;
  20. clish_view_t *alias_view;
  21. char *alias;
  22. clish_view_t *pview;
  23. bool_t lock;
  24. bool_t interrupt;
  25. bool_t dynamic; /* Is command dynamically created */
  26. clish_var_expand_fn_t *var_expand_fn;
  27. /* ACTION params: */
  28. char *builtin;
  29. char *shebang;
  30. /* CONFIG params:
  31. * TODO: create special structure for CONFIG params.
  32. */
  33. clish_config_operation_t cfg_op;
  34. unsigned short priority;
  35. char *pattern;
  36. char *file;
  37. bool_t splitter;
  38. char *seq;
  39. bool_t unique;
  40. char *cfg_depth;
  41. };