1
0

private.h 880 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. /* ACTION params: */
  27. char *builtin;
  28. char *shebang;
  29. /* CONFIG params:
  30. * TODO: create special structure for CONFIG params.
  31. */
  32. clish_config_operation_t cfg_op;
  33. unsigned short priority;
  34. char *pattern;
  35. char *file;
  36. bool_t splitter;
  37. char *seq;
  38. bool_t unique;
  39. char *cfg_depth;
  40. };