Skip to content

Commit

Permalink
coreinit: Add CopyData functions
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryOderNichts authored and fincs committed Oct 29, 2022
1 parent 8cae5c0 commit 4ccc879
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
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

0 comments on commit 4ccc879

Please sign in to comment.