X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/35a7d633d3f16c1e0539af6ca5d8e7482926cd93..3bda60093277ec3bc94439bcc6ae3bf7cef10e78:/lunaix-os/hal/char/lxconsole.c diff --git a/lunaix-os/hal/char/lxconsole.c b/lunaix-os/hal/char/lxconsole.c index aa4136a..1ac2d57 100644 --- a/lunaix-os/hal/char/lxconsole.c +++ b/lunaix-os/hal/char/lxconsole.c @@ -27,7 +27,7 @@ struct console { - struct potens_meta* tp_cap; + struct termport_potens* tp_cap; struct lx_timer* flush_timer; struct fifo_buf output; struct fifo_buf input; @@ -92,9 +92,7 @@ __lxconsole_listener(struct input_device* dev) fifo_putone(&lx_console.input, ttychr); - struct termport_potens* tpcap; - tpcap = get_potens(lx_console.tp_cap, typeof(*tpcap)); - term_notify_data_avaliable(tpcap); + term_notify_data_avaliable(lx_console.tp_cap); pwake_all(&lx_reader); done: @@ -300,7 +298,7 @@ lxconsole_spawn_ttydev(struct device_def* devdef) register_device(tty_dev, &devdef->class, "vcon"); - term_attach_potens(tty_dev, NULL, "VCON"); + lx_console.tp_cap = term_attach_potens(tty_dev, NULL, "VCON"); return 0; }