obj: add read() and write() object callbacks

This commit is contained in:
2023-05-14 21:11:32 +01:00
parent 0238008986
commit d02d05d922
10 changed files with 91 additions and 28 deletions

View File

@@ -3,6 +3,7 @@
#include <socks/status.h>
#include <socks/queue.h>
#include <socks/object.h>
#include <stdint.h>
/* The TTY system.
@@ -58,6 +59,8 @@ enum tty_scroll_dir {
typedef uint64_t tty_attrib_t;
struct tty_driver {
struct object tty_base;
char tty_name[16];
enum tty_driver_type tty_type;
struct queue_entry tty_list;