private.h 689 B

123456789101112131415161718192021222324252627282930
  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. char *ptype_name; /* Name of PTYPE */
  17. clish_ptype_t *ptype; /* The type of this parameter */
  18. char *defval; /* default value to use for this parameter */
  19. clish_paramv_t *paramv;
  20. clish_param_mode_e mode;
  21. bool_t optional;
  22. bool_t order;
  23. bool_t hidden;
  24. char *test; /* The condition to enable param */
  25. char *completion; /* Possible completions */
  26. char *access;
  27. };