Drivers have names
This commit is contained in:
parent
e880602944
commit
d50d772ca5
|
@ -390,6 +390,8 @@ static termkey_keysym register_csifunc_full(termkey_csi *csi, termkey_type type,
|
|||
}
|
||||
|
||||
struct termkey_driver termkey_driver_csi = {
|
||||
.name = "CSI",
|
||||
|
||||
.new_driver = new_driver,
|
||||
.free_driver = free_driver,
|
||||
|
||||
|
|
|
@ -255,6 +255,8 @@ static void register_seq(termkey_ti *ti, const char *seq, termkey_type type, ter
|
|||
}
|
||||
|
||||
struct termkey_driver termkey_driver_ti = {
|
||||
.name = "terminfo",
|
||||
|
||||
.new_driver = new_driver,
|
||||
.free_driver = free_driver,
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
struct termkey_driver
|
||||
{
|
||||
const char *name;
|
||||
void *(*new_driver)(termkey_t *tk, const char *term);
|
||||
void (*free_driver)(void *info);
|
||||
void (*start_driver)(termkey_t *tk, void *info);
|
||||
|
|
Loading…
Reference in New Issue