Added (undocumented) termkey_get_buffer_size()

This commit is contained in:
Paul LeoNerd Evans
2012-02-13 21:57:33 +00:00
parent ee12c698da
commit 5779ec3cd1
3 changed files with 10 additions and 1 deletions

View File

@@ -461,6 +461,11 @@ void termkey_set_canonflags(TermKey *tk, int flags)
tk->flags &= ~TERMKEY_FLAG_SPACESYMBOL;
}
size_t termkey_get_buffer_size(TermKey *tk)
{
return tk->buffsize;
}
size_t termkey_get_buffer_remaining(TermKey *tk)
{
/* Return the total number of free bytes in the buffer, because that's what