… | |
… | |
41 | }; |
41 | }; |
42 | |
42 | |
43 | #else |
43 | #else |
44 | |
44 | |
45 | // c api |
45 | // c api |
46 | int ptytty_pty (void *ptytty); |
|
|
47 | int ptytty_tty (void *ptytty); |
|
|
48 | void ptytty_delete (void *ptytty); |
|
|
49 | int ptytty_get (void *ptytty); |
|
|
50 | void ptytty_login (void *ptytty, int cmd_pid, bool login_shell, const char *hostname); |
|
|
51 | |
46 | |
|
|
47 | typedef void *PTYTTY; |
|
|
48 | |
|
|
49 | int ptytty_pty (PTYTTY ptytty); |
|
|
50 | int ptytty_tty (PTYTTY ptytty); |
|
|
51 | void ptytty_delete (PTYTTY ptytty); |
|
|
52 | int ptytty_get (PTYTTY ptytty); |
|
|
53 | void ptytty_login (PTYTTY ptytty, int cmd_pid, bool login_shell, const char *hostname); |
|
|
54 | |
52 | void ptytty_close_tty (void *ptytty); |
55 | void ptytty_close_tty (PTYTTY ptytty); |
53 | int ptytty_make_controlling_tty (void *ptytty); |
56 | int ptytty_make_controlling_tty (PTYTTY ptytty); |
54 | void ptytty_set_utf8_mode (void *ptytty, int on); |
57 | void ptytty_set_utf8_mode (PTYTTY ptytty, int on); |
55 | |
58 | |
56 | void ptytty_init (); |
59 | void ptytty_init (); |
57 | void *ptytty_create (); |
60 | PTYTTY ptytty_create (); |
58 | |
61 | |
59 | void ptytty_drop_privileges (); |
62 | void ptytty_drop_privileges (); |
60 | void ptytty_use_helper (); |
63 | void ptytty_use_helper (); |
61 | |
64 | |
62 | #endif |
65 | #endif |