forked from altorg/dgamelaunch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathttyplay.h
More file actions
20 lines (15 loc) · 661 Bytes
/
ttyplay.h
File metadata and controls
20 lines (15 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef INCLUDED_ttyplay_h
#define INCLUDED_ttyplay_h
#include <stdio.h>
#include "ttyrec.h"
int ttyplay_main (char *ttyfile, int mode, int resizex, int resizey);
typedef double (*WaitFunc) (struct timeval prev,
struct timeval cur, double speed);
typedef int (*ReadFunc) (FILE * fp, Header * h, char **buf, int pread);
typedef void (*WriteFunc) (char *buf, int len);
/* Return values for ReadFunc (and ProcessFunc) */
#define READ_DATA 0 /* Data */
#define READ_EOF 1 /* Normal EOF */
#define READ_RESTART 2 /* Screen must be redrawn (after simplemail) */
#define READ_QUIT 3 /* User aborted */
#endif /* !INCLUDED_ttyplay_h */