aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-08 17:56:44 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-08 17:56:44 +0000
commitd50d772ca543d5ca4e2e72d7401746343493c73d (patch)
treeb6aab464e91ffbe71d3fbb19fd20be7a0fcd9f0b
parente8806029447040591775cab4fb5bbd355d65bbdf (diff)
downloadtermo-d50d772ca543d5ca4e2e72d7401746343493c73d.tar.gz
termo-d50d772ca543d5ca4e2e72d7401746343493c73d.tar.xz
termo-d50d772ca543d5ca4e2e72d7401746343493c73d.zip
Drivers have names
-rw-r--r--driver-csi.c2
-rw-r--r--driver-ti.c2
-rw-r--r--termkey-internal.h1
3 files changed, 5 insertions, 0 deletions
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);