Added (undocumented) termkey_{get,set}_flags() calls to API

This commit is contained in:
Paul LeoNerd Evans 2008-11-10 21:21:19 +00:00
parent 9757a73daa
commit 397a7fb683
2 changed files with 13 additions and 0 deletions

View File

@ -263,6 +263,16 @@ void termkey_destroy(termkey_t *tk)
termkey_free(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) void termkey_set_waittime(termkey_t *tk, int msec)
{ {
tk->waittime = msec; tk->waittime = msec;

View File

@ -129,6 +129,9 @@ termkey_t *termkey_new(int fd, int flags);
void termkey_free(termkey_t *tk); void termkey_free(termkey_t *tk);
void termkey_destroy(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); void termkey_set_waittime(termkey_t *tk, int msec);
int termkey_get_waittime(termkey_t *tk); int termkey_get_waittime(termkey_t *tk);