00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __PTY_H__
00011 #define __PTY_H__ 1
00012
00013 typedef struct s_pty
00014 {
00015 int not_avail;
00016 t_tty *master;
00017 t_tty *slave;
00018 } t_pty;
00019
00020
00021
00022 int pty_init(t_ttydev *ttydev, t_tty *tty, void **ttydev_data);
00023 void pty_destroy(void *ttydev_data);
00024 ssize_t pty_write(void *ttydev_data, char *buf, int len);
00025 int pty_start(void *ttydev_data);
00026 int pty_ioctl(void *ttydev_data, int cmd, void *input);
00027 int ptys_init(t_ttydev *ttydev, t_tty *tty, void **ttydev_data);
00028 void ptys_destroy(void *ttydev_data);
00029 ssize_t ptys_write(void *ttydev_data, char *buf, int len);
00030 int ptys_start(void *ttydev_data);
00031 void pty_class_init(void);
00032 #endif