mirror of
https://github.com/wiiu-env/wiiu-nanddumper-payload.git
synced 2024-11-14 15:45:14 +01:00
22 lines
520 B
C
22 lines
520 B
C
|
#ifndef SVC_H
|
||
|
#define SVC_H
|
||
|
|
||
|
#include "types.h"
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
void* ptr;
|
||
|
u32 len;
|
||
|
u32 unk;
|
||
|
}iovec_s;
|
||
|
|
||
|
void* svcAlloc(u32 heapid, u32 size);
|
||
|
void* svcAllocAlign(u32 heapid, u32 size, u32 align);
|
||
|
void svcFree(u32 heapid, void* ptr);
|
||
|
int svcOpen(char* name, int mode);
|
||
|
int svcClose(int fd);
|
||
|
int svcIoctl(int fd, u32 request, void* input_buffer, u32 input_buffer_len, void* output_buffer, u32 output_buffer_len);
|
||
|
int svcIoctlv(int fd, u32 request, u32 vector_count_in, u32 vector_count_out, iovec_s* vector);
|
||
|
|
||
|
#endif
|