mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:24:17 +01:00
coreinit: Add OSSwitchFiber{Ex} functions.
This commit is contained in:
parent
11ff692fbf
commit
17a83000e0
35
include/coreinit/fiber.h
Normal file
35
include/coreinit/fiber.h
Normal file
@ -0,0 +1,35 @@
|
||||
#pragma once
|
||||
#include <wut.h>
|
||||
|
||||
/**
|
||||
* \defgroup coreinit_fiber Fiber
|
||||
* \ingroup coreinit
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void (*OSFiberEntryFn)();
|
||||
typedef void (*OSFiberExEntryFn)(uint32_t arg1, uint32_t arg2,
|
||||
uint32_t arg3, uint32_t arg4);
|
||||
|
||||
int32_t
|
||||
OSSwitchFiber(OSFiberEntryFn entry,
|
||||
void *stack);
|
||||
|
||||
int32_t
|
||||
OSSwitchFiberEx(uint32_t arg1,
|
||||
uint32_t arg2,
|
||||
uint32_t arg3,
|
||||
uint32_t arg4,
|
||||
OSFiberExEntryFn entry,
|
||||
void *stack);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
@ -14,6 +14,7 @@
|
||||
#include <coreinit/exit.h>
|
||||
#include <coreinit/fastcondition.h>
|
||||
#include <coreinit/fastmutex.h>
|
||||
#include <coreinit/fiber.h>
|
||||
#include <coreinit/filesystem.h>
|
||||
#include <coreinit/foreground.h>
|
||||
#include <coreinit/internal.h>
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <coreinit/exit.h>
|
||||
#include <coreinit/fastcondition.h>
|
||||
#include <coreinit/fastmutex.h>
|
||||
#include <coreinit/fiber.h>
|
||||
#include <coreinit/filesystem.h>
|
||||
#include <coreinit/foreground.h>
|
||||
#include <coreinit/internal.h>
|
||||
|
Loading…
Reference in New Issue
Block a user