1234567891011121314151617181920212223242526272829303132333435 |
- /** @file view.h
- *
- * @brief Klish scheme's "view" entry
- */
- #ifndef _klish_kview_h
- #define _klish_kview_h
- #include <faux/faux.h>
- #include <faux/error.h>
- #include <klish/iview.h>
- #include <klish/kcommand.h>
- typedef struct kview_s kview_t;
- C_DECL_BEGIN
- kview_t *kview_new(const char *name);
- void kview_free(kview_t *view);
- const char *kview_name(const kview_t *view);
- bool_t kview_add_command(kview_t *view, kcommand_t *command);
- kcommand_t *kview_find_command(const kview_t *view, const char *name);
- bool_t kview_parse(kview_t *view, const iview_t *info, faux_error_t *error);
- bool_t kview_nested_from_iview(kview_t *kview, iview_t *iview,
- faux_error_t *error);
- kview_t *kview_from_iview(iview_t *iview, faux_error_t *error);
- C_DECL_END
- #endif // _klish_kview_h
|