kcontext.h 847 B

12345678910111213141516171819202122232425262728
  1. /** @file kcontext.h
  2. *
  3. * @brief Klish context to pass to plugin's functions
  4. */
  5. #ifndef _klish_kcontext_h
  6. #define _klish_kcontext_h
  7. #include <klish/kcontext_base.h>
  8. #include <klish/kscheme.h>
  9. C_DECL_BEGIN
  10. int kcontext_retcode(const kcontext_t *context);
  11. bool_t kcontext_set_retcode(kcontext_t *context, int retcode);
  12. kplugin_t *kcontext_plugin(const kcontext_t *context);
  13. bool_t kcontext_set_plugin(kcontext_t *context, kplugin_t *plugin);
  14. ksym_t *kcontext_sym(const kcontext_t *context);
  15. bool_t kcontext_set_sym(kcontext_t *context, ksym_t *sym);
  16. kaction_t *kcontext_action(const kcontext_t *context);
  17. bool_t kcontext_set_action(kcontext_t *context, kaction_t *action);
  18. kcommand_t *kcontext_command(const kcontext_t *context);
  19. bool_t kcontext_set_command(kcontext_t *context, kcommand_t *command);
  20. C_DECL_END
  21. #endif // _klish_kcontext_h