vconsole: Add generic is_*() functions
authorMichal Soltys <soltys@ziu.info>
Tue, 26 Jul 2016 22:57:01 +0000 (00:57 +0200)
committerMichal Soltys <soltys@ziu.info>
Tue, 26 Jul 2016 22:57:01 +0000 (00:57 +0200)
commit03044059bfff8b79d47efc53e2468e122f502a72
tree6fad402f2410661fd33329446521aba10544b245
parent042d7f5065c9c19b3f96804f9403b14d910e46d1
vconsole: Add generic is_*() functions

is_allocated() and is_allocated_byfd():

Checks if the console is allocated by its index (first function) or
its open descriptor (second function).

is_settable():

Checks if the console is in xlate or unicode mode, so we can adjust
is safely without interfering with X.
src/vconsole/vconsole-setup.c