1
0

private.h 900 B

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