aboutsummaryrefslogtreecommitdiff
path: root/termkey.h.in
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-16 12:40:14 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-16 12:40:14 +0000
commit4f73b850c5a215e6cce7a559650a3cf7ec89d433 (patch)
treece1cdf78bdaa18bc4c9546b007c2c4fa51d10448 /termkey.h.in
parentc2dd9675d6af30ab5129519325bac68491087cc1 (diff)
downloadtermo-4f73b850c5a215e6cce7a559650a3cf7ec89d433.tar.gz
termo-4f73b850c5a215e6cce7a559650a3cf7ec89d433.tar.xz
termo-4f73b850c5a215e6cce7a559650a3cf7ec89d433.zip
Added compile-vs-runtime library version checks
Diffstat (limited to 'termkey.h.in')
-rw-r--r--termkey.h.in5
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);