From d50d772ca543d5ca4e2e72d7401746343493c73d Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Sat, 8 Nov 2008 17:56:44 +0000 Subject: Drivers have names --- driver-csi.c | 2 ++ driver-ti.c | 2 ++ termkey-internal.h | 1 + 3 files changed, 5 insertions(+) diff --git a/driver-csi.c b/driver-csi.c index fe885b2..05c7fa5 100644 --- a/driver-csi.c +++ b/driver-csi.c @@ -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, diff --git a/driver-ti.c b/driver-ti.c index 0c25f48..7c1d458 100644 --- a/driver-ti.c +++ b/driver-ti.c @@ -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, diff --git a/termkey-internal.h b/termkey-internal.h index 6e68525..2a1a831 100644 --- a/termkey-internal.h +++ b/termkey-internal.h @@ -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); -- cgit v1.2.3-70-g09d2