diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2021-12-27 03:14:47 +0000 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2021-12-27 03:14:47 +0000 |
commit | 8eecc029568bbe8e2f3c0d9af218ad3f957251c9 (patch) | |
tree | cb2c8a75e051968aecfdc90b318634065c6986b0 /src/demorec.h | |
parent | cdb02fefa748dc05cc66b48ca973bfe21decc5e6 (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.h | 11 |
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 |