summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorjohannes <johannes.herman@gmail.com>2024-02-09 13:04:51 +0100
committerjohannes <johannes.herman@gmail.com>2024-02-09 13:04:51 +0100
commitefa0424f21827ebc67d63375dcfeb0b77bd4d28f (patch)
treea4706c29504a24144b0b0425fb521fe41bc08bf2 /inc
parent95ab92f65e0435f71478c09d5756f96c7a4b9c09 (diff)
added printsnap func
Diffstat (limited to 'inc')
-rw-r--r--inc/demo.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/inc/demo.h b/inc/demo.h
index ee7901c..82c6461 100644
--- a/inc/demo.h
+++ b/inc/demo.h
@@ -95,6 +95,14 @@ typedef struct
demochunk *chunks;
} demodata;
+typedef struct
+{
+ demoheader *header;
+ demotimeline *timeline;
+ demomap *map;
+ demodata *data;
+} demo;
+
/* Read demo header from demofile into given demoheader */
/* Returns a positive number on success, negative on fail */
int readdemoheader(FILE *demofile, demoheader *header);
@@ -124,4 +132,9 @@ int writedemotick(FILE *outfile, demotick *tick, unsigned char version);
int writedemosnap(FILE *outfile, demosnap *snap, unsigned char version);
int writedemomessage(FILE *outfile, demomessage *message, unsigned char ver);
int writedemodelta(FILE *outfile, demodelta *delta, unsigned char ver);
+
+void printdemoheader(demoheader *header);
+void printdemotick(demotick *tick);
+void printdemosnap(demosnap *snap);
+
#endif // DEMO_H