aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-10 21:21:19 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-10 21:21:19 +0000
commit397a7fb68328b61d1fc0c055dc5f262d49177c1a (patch)
tree4146a54e865756cb6119d45439d6005dcf97867c
parent9757a73daa063ffca5705ae8732869ecc99f2b59 (diff)
downloadtermo-397a7fb68328b61d1fc0c055dc5f262d49177c1a.tar.gz
termo-397a7fb68328b61d1fc0c055dc5f262d49177c1a.tar.xz
termo-397a7fb68328b61d1fc0c055dc5f262d49177c1a.zip
Added (undocumented) termkey_{get,set}_flags() calls to API
-rw-r--r--termkey.c10
-rw-r--r--termkey.h3
2 files changed, 13 insertions, 0 deletions
diff --git a/termkey.c b/termkey.c
index 0294e26..bebaa9a 100644
--- a/termkey.c
+++ b/termkey.c
@@ -263,6 +263,16 @@ void termkey_destroy(termkey_t *tk)
termkey_free(tk);
}
+int termkey_get_flags(termkey_t *tk)
+{
+ return tk->flags;
+}
+
+void termkey_set_flags(termkey_t *tk, int newflags)
+{
+ tk->flags = newflags;
+}
+
void termkey_set_waittime(termkey_t *tk, int msec)
{
tk->waittime = msec;
diff --git a/termkey.h b/termkey.h
index a2aa3a3..4227518 100644
--- a/termkey.h
+++ b/termkey.h
@@ -129,6 +129,9 @@ termkey_t *termkey_new(int fd, int flags);
void termkey_free(termkey_t *tk);
void termkey_destroy(termkey_t *tk);
+int termkey_get_flags(termkey_t *tk);
+void termkey_set_flags(termkey_t *tk, int newflags);
+
void termkey_set_waittime(termkey_t *tk, int msec);
int termkey_get_waittime(termkey_t *tk);