private.h 597 B

123456789101112131415161718192021222324252627
  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. clish_var_expand_fn_t *var_expand_fn;
  24. };