ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/libptytty/src/ptytty.h
Revision: 1.25
Committed: Wed Jun 16 13:47:54 2021 UTC (5 years, 4 months ago) by sf-exg
Content type: text/plain
Branch: MAIN
Changes since 1.24: +8 -8 lines
Log Message:
Mark internal class members as private

File Contents

# User Rev Content
1 root 1.1 #ifndef PTYTTY_H
2     #define PTYTTY_H
3    
4 root 1.5 #include "libptytty.h"
5 root 1.3 #include "ptytty_conf.h"
6 root 1.1
7 sf-exg 1.23 #include <sys/types.h>
8    
9 root 1.2 #if defined(HAVE__GETPTY) || defined(HAVE_OPENPTY) || defined(UNIX98_PTY)
10 root 1.1 # define NO_SETOWNER_TTYDEV 1
11     #endif
12    
13 root 1.2 #if UTMP_SUPPORT
14 sf-exg 1.24 # if defined(HAVE_STRUCT_UTMPX) && !defined(__GLIBC__)
15     # define USE_UTMPX
16     # elif defined(HAVE_STRUCT_UTMP)
17     # define USE_UTMP
18     # else
19 root 1.2 # error cannot build with utmp support - no utmp or utmpx struct found
20     # endif
21 root 1.1 #endif
22 root 1.2
23 root 1.4 struct ptytty_unix : ptytty
24 root 1.2 {
25 sf-exg 1.25 private:
26    
27 root 1.2 char *name;
28 sf-exg 1.25 #if UTMP_SUPPORT
29     int utmp_pos;
30     int cmd_pid;
31     bool login_shell;
32     #endif
33 root 1.2
34 sf-exg 1.15 void log_session (bool login, const char *hostname);
35 sf-exg 1.25 void put ();
36 sf-exg 1.15
37 root 1.1 public:
38    
39 root 1.4 ptytty_unix ();
40     ~ptytty_unix ();
41 root 1.1
42     bool get ();
43 root 1.6 void login (int cmd_pid, bool login_shell, const char *hostname);
44 root 1.1 };
45    
46     #endif
47