1
0

private.h 635 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * param.h
  3. */
  4. #include "clish/param.h"
  5. /*---------------------------------------------------------
  6. * PRIVATE TYPES
  7. *--------------------------------------------------------- */
  8. struct clish_paramv_s {
  9. unsigned paramc;
  10. clish_param_t **paramv;
  11. };
  12. struct clish_param_s {
  13. char *name;
  14. char *text;
  15. char *value;
  16. clish_ptype_t *ptype; /* The type of this parameter */
  17. char *defval; /* default value to use for this parameter */
  18. clish_paramv_t *paramv;
  19. clish_param_mode_e mode;
  20. bool_t optional;
  21. bool_t order;
  22. bool_t hidden;
  23. char *test; /* The condition to enable param */
  24. char *completion; /* Possible completions */
  25. };