ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/libptytty.h
(Generate patch)

Comparing rxvt-unicode/src/libptytty.h (file contents):
Revision 1.2 by root, Sun Jan 22 16:36:40 2006 UTC vs.
Revision 1.3 by root, Mon Jan 23 12:05:12 2006 UTC

1// This file is part of libptytty. Do not make local modifications. 1// This file is part of libptytty. Do not make local modifications.
2// http://software.schmorp.de/pkg/libptytty 2// http://software.schmorp.de/pkg/libptytty
3 3
4#ifndef LIBPTYTTY_H_ /* public libptytty header file */ 4#ifndef LIBPTYTTY_H_ /* public libptytty header file */
5#define LIBPTYTTY_H_ 5#define LIBPTYTTY_H_
6
7#ifdef __cplusplus
8
9// c++ api
6 10
7struct ptytty { 11struct ptytty {
8 int pty; // pty file descriptor; connected to rxvt 12 int pty; // pty file descriptor; connected to rxvt
9 int tty; // tty file descriptor; connected to child 13 int tty; // tty file descriptor; connected to child
10 14
34 : pty(-1), tty(-1) 38 : pty(-1), tty(-1)
35 { 39 {
36 } 40 }
37}; 41};
38 42
43#else
44
45// c api
46int ptytty_pty (void *ptytty);
47int ptytty_tty (void *ptytty);
48void ptytty_delete (void *ptytty);
49int ptytty_get (void *ptytty);
50void ptytty_login (void *ptytty, int cmd_pid, bool login_shell, const char *hostname);
51
52void ptytty_close_tty (void *ptytty);
53int ptytty_make_controlling_tty (void *ptytty);
54void ptytty_set_utf8_mode (void *ptytty, int on);
55
56void ptytty_init ();
57void *ptytty_create ();
58
59void ptytty_drop_privileges ();
60void ptytty_use_helper ();
61
39#endif 62#endif
40 63
64#endif
65

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines