Files
Oleg Nesterov 4d7f252f21 kvmtool/term: unexport term_set_tty, term_init, term_exit
According to git grep they can be static.

term_got_escape can be static too, and we can even move it into
term_getc().

"int term_escape_char" doesn't make sense at least until we allow
to redefine it, turn it into preprocessor constant.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2015-10-27 16:01:59 +00:00

24 lines
553 B
C

#ifndef KVM__TERM_H
#define KVM__TERM_H
#include "kvm/kvm.h"
#include <sys/uio.h>
#include <stdbool.h>
#define CONSOLE_8250 1
#define CONSOLE_VIRTIO 2
#define CONSOLE_HV 3
#define TERM_MAX_DEVS 4
int term_putc_iov(struct iovec *iov, int iovcnt, int term);
int term_getc_iov(struct kvm *kvm, struct iovec *iov, int iovcnt, int term);
int term_putc(char *addr, int cnt, int term);
int term_getc(struct kvm *kvm, int term);
bool term_readable(int term);
int tty_parser(const struct option *opt, const char *arg, int unset);
#endif /* KVM__TERM_H */