Added a termkey_is_started() accessor; unit test it a bit

This commit is contained in:
Paul LeoNerd Evans
2012-03-08 21:24:39 +00:00
parent 43a83e6e96
commit cb00476f09
3 changed files with 16 additions and 1 deletions

View File

@@ -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;