aboutsummaryrefslogtreecommitdiff
path: root/termkey-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'termkey-internal.h')
-rw-r--r--termkey-internal.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/termkey-internal.h b/termkey-internal.h
index e9fe1fd..7934306 100644
--- a/termkey-internal.h
+++ b/termkey-internal.h
@@ -8,8 +8,9 @@
struct termkey_driver
{
- void *(*new_driver)(void);
- void (*free_driver)(void *);
+ void *(*new_driver)(termkey_t *tk);
+ void (*free_driver)(void *);
+ termkey_result (*getkey)(termkey_t *tk, termkey_key *key);
};
struct termkey {
@@ -34,6 +35,6 @@ struct termkey {
void *driver_info;
};
-void *termkeycsi_new_driver(termkey_t *t);
+extern struct termkey_driver termkey_driver_csi;
#endif