kview.h 511 B

123456789101112131415161718192021222324252627282930
  1. /** @file view.h
  2. *
  3. * @brief Klish scheme's "view" entry
  4. */
  5. #ifndef _klish_kview_h
  6. #define _klish_kview_h
  7. #include <klish/kcommand.h>
  8. typedef struct kview_s kview_t;
  9. typedef struct kview_info_s {
  10. char *name;
  11. } kview_info_t;
  12. C_DECL_BEGIN
  13. kview_t *kview_new(kview_info_t info);
  14. kview_t *kview_new_static(kview_info_t info);
  15. void kview_free(kview_t *view);
  16. const char *kview_name(const kview_t *view);
  17. bool_t kview_add_command(kview_t *view, kcommand_t *command);
  18. C_DECL_END
  19. #endif // _klish_kview_h