#ifndef TTY_QUEUE_H
#define TTY_QUEUE_H
struct tty_queue_struct;
void tty_queue_init(struct tty_queue_struct *tty_queue);
unsigned int tty_queue_get_end(const struct tty_queue_struct *tty_queue);
int tty_queue_is_empty(const struct tty_queue_struct *tty_queue);
int tty_queue_is_full(const struct tty_queue_struct *tty_queue);
int tty_queue_get_last(const struct tty_queue_struct *tty_queue, char *c);
int tty_queue_get(const struct tty_queue_struct *tty_queue, unsigned int *pos, char *c);
int tty_queue_push(struct tty_queue_struct *tty_queue, char c);
int tty_queue_pop(struct tty_queue_struct *tty_queue, char *c);
void tty_queue_del(struct tty_queue_struct *tty_queue);
void tty_queue_clear(struct tty_queue_struct *tty_queue);
#endif