iptype.h 621 B

12345678910111213141516171819202122232425262728
  1. /** @file iptype.h
  2. *
  3. * @brief Klish scheme's "ptype" entry
  4. */
  5. #ifndef _klish_iptype_h
  6. #define _klish_iptype_h
  7. #include <faux/error.h>
  8. #include <klish/iaction.h>
  9. typedef struct iptype_s {
  10. char *name;
  11. char *help;
  12. iaction_t * (*actions)[];
  13. } iptype_t;
  14. C_DECL_BEGIN
  15. bool_t iptype_parse(const iptype_t *info, kptype_t *ptype, faux_error_t *error);
  16. bool_t iptype_parse_nested(const iptype_t *iptype, kptype_t *kptype,
  17. faux_error_t *error_stack);
  18. kptype_t *iptype_load(const iptype_t *iptype, faux_error_t *error_stack);
  19. char *iptype_deploy(const kptype_t *kptype, int level);
  20. C_DECL_END
  21. #endif // _klish_iptype_h