iview.h 600 B

12345678910111213141516171819202122232425262728
  1. /** @file view.h
  2. *
  3. * @brief Klish scheme's "view" entry
  4. */
  5. #ifndef _klish_iview_h
  6. #define _klish_iview_h
  7. #include <faux/error.h>
  8. #include <klish/icommand.h>
  9. #include <klish/kview.h>
  10. typedef struct iview_s {
  11. char *name;
  12. icommand_t * (*commands)[];
  13. } iview_t;
  14. C_DECL_BEGIN
  15. bool_t iview_parse(const iview_t *info, kview_t *view, faux_error_t *error);
  16. bool_t iview_parse_nested(const iview_t *iview, kview_t *kview,
  17. faux_error_t *error);
  18. kview_t *iview_load(const iview_t *iview, faux_error_t *error);
  19. char *iview_deploy(const kview_t *kview, int level);
  20. C_DECL_END
  21. #endif // _klish_iview_h