summaryrefslogtreecommitdiffhomepage
path: root/src/demorec.h
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2021-12-27 03:14:47 +0000
committerMichael Smith <mikesmiffy128@gmail.com>2021-12-27 03:14:47 +0000
commit8eecc029568bbe8e2f3c0d9af218ad3f957251c9 (patch)
treecb2c8a75e051968aecfdc90b318634065c6986b0 /src/demorec.h
parentcdb02fefa748dc05cc66b48ca973bfe21decc5e6 (diff)
Add custom demo packet stuff
This is more old code that wasn't part of the initial release. Figure I might as well throw it in for later.
Diffstat (limited to 'src/demorec.h')
-rw-r--r--src/demorec.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/demorec.h b/src/demorec.h
index 9d8e73e..d739393 100644
--- a/src/demorec.h
+++ b/src/demorec.h
@@ -23,6 +23,17 @@
bool demorec_init(void);
void demorec_end(void);
+bool demorec_custom_init(void);
+
+/* maximum length of a custom demo message, in bytes */
+#define DEMOREC_CUSTOM_MSG_MAX 253
+
+/*
+ * Write a block of up to DEMOWRITER_MSG_MAX bytes into the currently recording
+ * demo - NOT bounds checked, caller MUST ensure length is okay!
+ */
+void demorec_writecustom(void *buf, int len);
+
#endif
// vi: sw=4 ts=4 noet tw=80 cc=80