summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorjohannes <johannes.herman@gmail.com>2024-02-07 14:03:14 +0100
committerjohannes <johannes.herman@gmail.com>2024-02-07 14:03:14 +0100
commit98cd0c228f14b1c336a106bacf917b89318948cf (patch)
tree4eecc0297ba9c7a04d8810f368d118b91fcb380c /inc
parentedff23604a6ae5b46980f7b2f9e9f4f36155189a (diff)
added simple read message and delta functions
Diffstat (limited to 'inc')
-rw-r--r--inc/demo.h6
1 files changed, 6 insertions, 0 deletions
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);