ksession.h 496 B

1234567891011121314151617181920212223242526
  1. /** @file ksession.h
  2. *
  3. * @brief Klish session
  4. */
  5. #ifndef _klish_ksession_h
  6. #define _klish_ksession_h
  7. #include <klish/kscheme.h>
  8. #define KSESSION_DEFAULT_VIEW "main"
  9. typedef struct ksession_s ksession_t;
  10. C_DECL_BEGIN
  11. ksession_t *ksession_new(const kscheme_t *scheme, const char *start_view);
  12. void ksession_free(ksession_t *session);
  13. const kscheme_t *ksession_scheme(const ksession_t *session);
  14. kpath_t *ksession_path(const ksession_t *session);
  15. C_DECL_END
  16. #endif // _klish_ksession_h