aboutsummaryrefslogtreecommitdiff
path: root/termkey-internal.h
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-10-07 22:22:59 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-10-07 22:22:59 +0100
commit145dca73b24f361d54c48a9ad689abf64663c684 (patch)
tree501f45ea14252a5a9483f5b387bd94abea4c057e /termkey-internal.h
parent8b7c2b5d4f79cf600df60a583accd04fb273c300 (diff)
downloadtermo-145dca73b24f361d54c48a9ad689abf64663c684.tar.gz
termo-145dca73b24f361d54c48a9ad689abf64663c684.tar.xz
termo-145dca73b24f361d54c48a9ad689abf64663c684.zip
Moved 'eatbytes' back into core code, put a code ptr in the termkey struct as a "protected" method
Diffstat (limited to 'termkey-internal.h')
-rw-r--r--termkey-internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/termkey-internal.h b/termkey-internal.h
index 7934306..4278c6a 100644
--- a/termkey-internal.h
+++ b/termkey-internal.h
@@ -33,6 +33,12 @@ struct termkey {
struct termkey_driver driver;
void *driver_info;
+
+ // Now some "protected" methods for the driver to call but which we don't
+ // want exported as real symbols in the library
+ struct {
+ void (*eatbytes)(termkey_t *tk, size_t count);
+ } method;
};
extern struct termkey_driver termkey_driver_csi;