Drivers have names

This commit is contained in:
Paul LeoNerd Evans 2008-11-08 17:56:44 +00:00
parent e880602944
commit d50d772ca5
3 changed files with 5 additions and 0 deletions

View File

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

View File

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

View File

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