[BACK]Return to ttyplay.h CVS log [TXT][DIR] Up to [contributed] / dgamelaunch-openbsd

File: [contributed] / dgamelaunch-openbsd / ttyplay.h (download)

Revision 1.1.1.1 (vendor branch), Tue Mar 9 14:36:00 2021 UTC (3 years, 1 month ago) by rubenllorente
Branch: paxed, MAIN
CVS Tags: start, HEAD, DGAMELAUNCH_0_0_1
Changes since 1.1: +0 -0 lines

Initial commit from the latest dgamelaunch version available at https://github.com/paxed

#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 */