diff options
Diffstat (limited to 'termkey.h.in')
-rw-r--r-- | termkey.h.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/termkey.h.in b/termkey.h.in index 4849923..7f0dc49 100644 --- a/termkey.h.in +++ b/termkey.h.in @@ -7,6 +7,9 @@ #define TERMKEY_VERSION_MAJOR @@VERSION_MAJOR@@ #define TERMKEY_VERSION_MINOR @@VERSION_MINOR@@ +#define TERMKEY_CHECK_VERSION \ + termkey_check_version(TERMKEY_VERSION_MAJOR, TERMKEY_VERSION_MINOR) + typedef enum { TERMKEY_SYM_UNKNOWN = -1, TERMKEY_SYM_NONE = 0, @@ -128,6 +131,8 @@ enum { TERMKEY_FLAG_NOTERMIOS = 1 << 4, // Do not make initial termios calls on construction }; +void termkey_check_version(int major, int minor); + termkey_t *termkey_new(int fd, int flags); void termkey_free(termkey_t *tk); void termkey_destroy(termkey_t *tk); |