summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
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);