char: use a static array for backends
commita1698bf183a2fc05ff980e06c798408d5898bc48
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 21 Oct 2016 13:30:29 +0000 (21 16:30 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jan 2017 17:07:58 +0000 (27 18:07 +0100)
tree589bd8da65ebaef6f648fcc1998f7225e23a7fcd
parent0b812f31925f2ed50eb54d2be6ac9291bf67b890
char: use a static array for backends

Number and kinds of backends is known at compile-time, use a fixed-sized
static array to simplify iterations & lookups.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-char.c