dgamelaunch/ttyplay.h
Joshua Kwan c0afaba270 - remove third argument from ttyplay_main
- kludge to not run strip_gfx when stripped == NO_GRAPHICS
- other random fixes


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@221 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-03 02:55:24 +00:00

20 lines
612 B
C

#ifndef INCLUDED_ttyplay_h
#define INCLUDED_ttyplay_h
#include <stdio.h>
#include "ttyrec.h"
int ttyplay_main (char *ttyfile, int mode);
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 or user aborted */
#define READ_RESTART 2 /* Screen must be redrawn (after simplemail) */
#endif /* !INCLUDED_ttyplay_h */