From 1480b1ea89f512e5135b968503c5fa4e035e6f61 Mon Sep 17 00:00:00 2001 From: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> Date: Wed, 28 Sep 2022 00:17:10 +0200 Subject: [PATCH] coreinit: Add CopyData functions --- include/coreinit/copydata.h | 35 +++++++++++++++++++ .../test_compile_headers_list.h | 1 + 2 files changed, 36 insertions(+) create mode 100644 include/coreinit/copydata.h diff --git a/include/coreinit/copydata.h b/include/coreinit/copydata.h new file mode 100644 index 000000000..3137b500e --- /dev/null +++ b/include/coreinit/copydata.h @@ -0,0 +1,35 @@ +#pragma once +#include + +/** + * \defgroup coreinit_copydata CopyData + * \ingroup coreinit + * + * @{ + */ + +#ifdef __cplusplus +extern "C" { +#endif + +void +__OSClearCopyData(); + +BOOL +__OSAppendCopyData(const void *data, + uint32_t size); + +void * +__OSGetCopyDataPtr(); + +uint32_t +__OSGetCopyDataSize(); + +BOOL +__OSResizeCopyData(uint32_t size); + +#ifdef __cplusplus +} +#endif + +/** @} */ diff --git a/tests/test_compile_headers_common/test_compile_headers_list.h b/tests/test_compile_headers_common/test_compile_headers_list.h index 14e740c04..de5e1d9f9 100644 --- a/tests/test_compile_headers_common/test_compile_headers_list.h +++ b/tests/test_compile_headers_common/test_compile_headers_list.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include