aboutsummaryrefslogtreecommitdiff
path: root/termkey.c
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-03-08 21:24:39 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-03-08 21:24:39 +0000
commitcb00476f09d5ab7e342f562e6c516f23c98aac88 (patch)
tree131208b1525223daa17a78fdb5e4e90032923c1d /termkey.c
parent43a83e6e96ce1bce7fffa2060278d7acdaafa445 (diff)
downloadtermo-cb00476f09d5ab7e342f562e6c516f23c98aac88.tar.gz
termo-cb00476f09d5ab7e342f562e6c516f23c98aac88.tar.xz
termo-cb00476f09d5ab7e342f562e6c516f23c98aac88.zip
Added a termkey_is_started() accessor; unit test it a bit
Diffstat (limited to 'termkey.c')
-rw-r--r--termkey.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/termkey.c b/termkey.c
index 9286149..5f5a9a9 100644
--- a/termkey.c
+++ b/termkey.c
@@ -446,6 +446,11 @@ int termkey_stop(TermKey *tk)
return 1;
}
+int termkey_is_started(TermKey *tk)
+{
+ return tk->is_started;
+}
+
int termkey_get_fd(TermKey *tk)
{
return tk->fd;