iptype.h 647 B

1234567891011121314151617181920212223242526272829
  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. #include <klish/kptype.h>
  10. typedef struct iptype_s {
  11. char *name;
  12. char *help;
  13. iaction_t * (*actions)[];
  14. } iptype_t;
  15. C_DECL_BEGIN
  16. bool_t iptype_parse(const iptype_t *info, kptype_t *ptype, faux_error_t *error);
  17. bool_t iptype_parse_nested(const iptype_t *iptype, kptype_t *kptype,
  18. faux_error_t *error_stack);
  19. kptype_t *iptype_load(const iptype_t *iptype, faux_error_t *error_stack);
  20. char *iptype_deploy(const kptype_t *kptype, int level);
  21. C_DECL_END
  22. #endif // _klish_iptype_h