iview.h 575 B

123456789101112131415161718192021222324252627
  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. typedef struct iview_s {
  10. char *name;
  11. icommand_t * (*commands)[];
  12. } iview_t;
  13. C_DECL_BEGIN
  14. bool_t iview_parse(const iview_t *info, kview_t *view, faux_error_t *error);
  15. bool_t iview_parse_nested(const iview_t *iview, kview_t *kview,
  16. faux_error_t *error);
  17. kview_t *iview_load(const iview_t *iview, faux_error_t *error);
  18. char *iview_deploy(const kview_t *kview, int level);
  19. C_DECL_END
  20. #endif // _klish_iview_h