From 8eecc029568bbe8e2f3c0d9af218ad3f957251c9 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 27 Dec 2021 03:14:47 +0000 Subject: 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. --- src/demorec.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/demorec.h') 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 -- cgit v1.2.3