khotkey.h 434 B

12345678910111213141516171819202122232425
  1. /** @file khotkey.h
  2. *
  3. * @brief Klish scheme's "hotkey" entry
  4. */
  5. #ifndef _klish_khotkey_h
  6. #define _klish_khotkey_h
  7. #include <faux/error.h>
  8. typedef struct khotkey_s khotkey_t;
  9. C_DECL_BEGIN
  10. khotkey_t *khotkey_new(const char *key, const char *cmd);
  11. void khotkey_free(khotkey_t *hotkey);
  12. const char *khotkey_key(const khotkey_t *hotkey);
  13. const char *khotkey_cmd(const khotkey_t *hotkey);
  14. C_DECL_END
  15. #endif // _klish_khotkey_h