iparam.h 655 B

12345678910111213141516171819202122232425262728293031
  1. /** @file iparam.h
  2. *
  3. * @brief Klish scheme's "param" entry
  4. */
  5. #ifndef _klish_iparam_h
  6. #define _klish_iparam_h
  7. #include <faux/error.h>
  8. #include <klish/kparam.h>
  9. typedef struct iparam_s iparam_t;
  10. struct iparam_s {
  11. char *name;
  12. char *help;
  13. char *ptype;
  14. iparam_t * (*params)[]; // Nested PARAMs
  15. };
  16. C_DECL_BEGIN
  17. bool_t iparam_parse(const iparam_t *info, kparam_t *param, faux_error_t *error);
  18. bool_t iparam_parse_nested(const iparam_t *iparam, kparam_t *kparam,
  19. faux_error_t *error);
  20. kparam_t *iparam_load(const iparam_t *iparam, faux_error_t *error);
  21. char *iparam_deploy(const kparam_t *kparam, int level);
  22. C_DECL_END
  23. #endif // _klish_iparam_h