Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coreinit: Add CopyData functions #283

Merged
merged 1 commit into from
Oct 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions include/coreinit/copydata.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#pragma once
#include <wut.h>

/**
* \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

/** @} */
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <coreinit/codegen.h>
#include <coreinit/condition.h>
#include <coreinit/context.h>
#include <coreinit/copydata.h>
#include <coreinit/core.h>
#include <coreinit/coroutine.h>
#include <coreinit/cosreport.h>
Expand Down