2003-12-30 22:30:32 +01:00
|
|
|
#ifndef __TTYREC_H__
|
|
|
|
#define __TTYREC_H__
|
|
|
|
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
typedef struct header
|
|
|
|
{
|
2003-12-31 20:47:49 +01:00
|
|
|
struct timeval tv;
|
|
|
|
size_t len;
|
2003-12-30 22:30:32 +01:00
|
|
|
}
|
|
|
|
Header;
|
|
|
|
|
2004-01-30 03:49:29 +01:00
|
|
|
extern void done (void);
|
|
|
|
extern void fail (void);
|
|
|
|
extern void fixtty (void);
|
|
|
|
extern void getslave (void);
|
|
|
|
extern void doinput (void);
|
2010-03-02 19:02:51 +01:00
|
|
|
extern void dooutput (int max_idle_time);
|
2007-03-29 22:14:55 +02:00
|
|
|
extern void doshell (int, char *);
|
2004-01-30 03:49:29 +01:00
|
|
|
extern void finish (int);
|
2004-02-03 04:02:19 +01:00
|
|
|
extern void remove_ipfile (void);
|
2004-01-30 03:49:29 +01:00
|
|
|
|
2009-10-17 19:34:36 +02:00
|
|
|
extern int ttyrec_main (int, char *username, char *ttyrec_path, char* ttyrec_filename);
|
2004-01-30 03:49:29 +01:00
|
|
|
|
|
|
|
extern pid_t child; /* nethack process */
|
|
|
|
extern int master, slave;
|
|
|
|
extern struct termios tt;
|
|
|
|
extern struct winsize win;
|
2003-12-30 22:30:32 +01:00
|
|
|
|
|
|
|
#endif
|