From 98cd0c228f14b1c336a106bacf917b89318948cf Mon Sep 17 00:00:00 2001 From: johannes Date: Wed, 7 Feb 2024 14:03:14 +0100 Subject: added simple read message and delta functions --- inc/demo.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'inc') diff --git a/inc/demo.h b/inc/demo.h index 379c3e8..645e2a2 100644 --- a/inc/demo.h +++ b/inc/demo.h @@ -63,10 +63,14 @@ typedef struct typedef struct { + int datasize; + char *data; } demodelta; typedef struct { + int datasize; + char *data; } demomessage; /* union for different chunks */ @@ -110,6 +114,8 @@ int readdemomap(FILE *demofile, demomap *map, int mapsize, unsigned char version /* Will allocate memory if chunk is snap, delta or message */ int readdemochunk(FILE *demofile, demochunk *chunk, unsigned char version); +int readdemochunks(FILE *fp, demodata *dd, unsigned char ver); + int writedemoheader(FILE *outfile, demoheader *header); int writedemotimeline(FILE *outfile, demotimeline *timeline); int writedemomap(FILE *outfile, demomap *map, int mapsize, unsigned char version); -- cgit v1.2.3