aboutsummaryrefslogtreecommitdiff
path: root/termkey-internal.h
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-10-06 23:36:14 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-10-06 23:36:14 +0100
commite3eca8d51a7d6c0676b973713a1ff043eb0095c7 (patch)
tree37f12e4734916972ed6e2f851841430102d3cdb2 /termkey-internal.h
parentf5c6ecf9af6a024c1c4a0d486303516a6381ddc7 (diff)
downloadtermo-e3eca8d51a7d6c0676b973713a1ff043eb0095c7.tar.gz
termo-e3eca8d51a7d6c0676b973713a1ff043eb0095c7.tar.xz
termo-e3eca8d51a7d6c0676b973713a1ff043eb0095c7.zip
Use vtable in driver to indirect calls to the CSI driver
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