summaryrefslogtreecommitdiff
path: root/inc/demo.h
diff options
context:
space:
mode:
authorjohannes <johannes.herman@gmail.com>2024-02-06 19:56:18 +0100
committerjohannes <johannes.herman@gmail.com>2024-02-06 19:56:18 +0100
commitedff23604a6ae5b46980f7b2f9e9f4f36155189a (patch)
tree6b811e7538f5cacb0f63c2bf0a3783e8356b0597 /inc/demo.h
parentec6a5c1ff3bb7731e17b798f9bbfdb0aedf94baa (diff)
added write demo functions
Diffstat (limited to 'inc/demo.h')
-rw-r--r--inc/demo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/demo.h b/inc/demo.h
index 6a8a04a..379c3e8 100644
--- a/inc/demo.h
+++ b/inc/demo.h
@@ -34,7 +34,7 @@ typedef struct
typedef struct
{
unsigned char sha256[32];
- unsigned char *data;
+ char *data;
} demomap;
typedef struct
@@ -110,4 +110,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 writedemoheader(FILE *outfile, demoheader *header);
+int writedemotimeline(FILE *outfile, demotimeline *timeline);
+int writedemomap(FILE *outfile, demomap *map, int mapsize, unsigned char version);
+
#endif // DEMO_H