private.h 558 B

1234567891011121314151617181920212223242526
  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 hidden;
  22. char *test; /* the condition */
  23. };