Moved 'eatbytes' back into core code, put a code ptr in the termkey struct as a "protected" method

This commit is contained in:
Paul LeoNerd Evans
2008-10-07 22:22:59 +01:00
parent 8b7c2b5d4f
commit 145dca73b2
3 changed files with 43 additions and 32 deletions

View File

@@ -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;