diff options
Diffstat (limited to 'session.h')
-rw-r--r-- | session.h | 28 |
1 files changed, 0 insertions, 28 deletions
@@ -26,32 +26,6 @@ | |||
26 | #ifndef SESSION_H | 26 | #ifndef SESSION_H |
27 | #define SESSION_H | 27 | #define SESSION_H |
28 | 28 | ||
29 | #define TTYSZ 64 | ||
30 | typedef struct Session Session; | ||
31 | struct Session { | ||
32 | int used; | ||
33 | int self; | ||
34 | struct passwd *pw; | ||
35 | Authctxt *authctxt; | ||
36 | pid_t pid; | ||
37 | /* tty */ | ||
38 | char *term; | ||
39 | int ptyfd, ttyfd, ptymaster; | ||
40 | int row, col, xpixel, ypixel; | ||
41 | char tty[TTYSZ]; | ||
42 | /* X11 */ | ||
43 | int display_number; | ||
44 | char *display; | ||
45 | int screen; | ||
46 | char *auth_display; | ||
47 | char *auth_proto; | ||
48 | char *auth_data; | ||
49 | int single_connection; | ||
50 | /* proto 2 */ | ||
51 | int chanid; | ||
52 | int is_subsystem; | ||
53 | }; | ||
54 | |||
55 | void do_authenticated(Authctxt *); | 29 | void do_authenticated(Authctxt *); |
56 | 30 | ||
57 | int session_open(Authctxt*, int); | 31 | int session_open(Authctxt*, int); |
@@ -60,6 +34,4 @@ void session_close_by_pid(pid_t, int); | |||
60 | void session_close_by_channel(int, void *); | 34 | void session_close_by_channel(int, void *); |
61 | void session_destroy_all(void); | 35 | void session_destroy_all(void); |
62 | 36 | ||
63 | Session *session_new(void); | ||
64 | void session_close(Session *); | ||
65 | #endif | 37 | #endif |