wut  v1.7.0
Wii U Toolchain
somemopt.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef enum SOMemOptRequest
16 {
27 
28 typedef enum SOMemOptFlags
29 {
34 
54 int
56  void *buffer,
57  uint32_t size,
58  SOMemOptFlags flags);
59 
60 int
62  void *buffer,
63  uint32_t size,
64  SOMemOptFlags flags);
65 
66 #ifdef __cplusplus
67 }
68 #endif
SOMemOptFlags
Definition: somemopt.h:29
SOMemOptRequest
Definition: somemopt.h:16
int somemopt(SOMemOptRequest request, void *buffer, uint32_t size, SOMemOptFlags flags)
Perform a somemopt request.
@ SOMEMOPT_FLAGS_BIG_BUFFERS
Changes the distribution between small and big buffers to 50-50 instead of 80-20.
Definition: somemopt.h:32
@ SOMEMOPT_FLAGS_NONE
Definition: somemopt.h:30
@ SOMEMOPT_REQUEST_CANCEL_WAIT
Cancel pending wait for init.
Definition: somemopt.h:25
@ SOMEMOPT_REQUEST_WAIT_FOR_INIT
Wait for buffer management initialization to be done.
Definition: somemopt.h:23
@ SOMEMOPT_REQUEST_INIT
Initialize buffer managment from user-provided buffer.
Definition: somemopt.h:19
@ SOMEMOPT_REQUEST_GET_BYTES_USED
Return the amount of bytes used for buffer management.
Definition: somemopt.h:21
#define RPLWRAP(func)
Definition: wut_rplwrap.h:3