/** @file ksession.h * * @brief Klish session */ #ifndef _klish_ksession_h #define _klish_ksession_h #include #include #define KSESSION_STARTING_ENTRY "main" typedef struct ksession_s ksession_t; C_DECL_BEGIN ksession_t *ksession_new(kscheme_t *scheme, const char *start_entry); void ksession_free(ksession_t *session); kscheme_t *ksession_scheme(const ksession_t *session); kpath_t *ksession_path(const ksession_t *session); // Done bool_t ksession_done(const ksession_t *session); bool_t ksession_set_done(ksession_t *session, bool_t done); // Width of pseudo terminal size_t ksession_term_width(const ksession_t *session); bool_t ksession_set_term_width(ksession_t *session, size_t term_width); // Height of pseudo terminal size_t ksession_term_height(const ksession_t *session); bool_t ksession_set_term_height(ksession_t *session, size_t term_height); C_DECL_END #endif // _klish_ksession_h