diff options
| author | johannes <johannes.herman@gmail.com> | 2024-02-07 14:03:14 +0100 |
|---|---|---|
| committer | johannes <johannes.herman@gmail.com> | 2024-02-07 14:03:14 +0100 |
| commit | 98cd0c228f14b1c336a106bacf917b89318948cf (patch) | |
| tree | 4eecc0297ba9c7a04d8810f368d118b91fcb380c /inc | |
| parent | edff23604a6ae5b46980f7b2f9e9f4f36155189a (diff) | |
added simple read message and delta functions
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/demo.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |
