RetroArch
imports.h
Go to the documentation of this file.
1 /* coreinit */
2 IMPORT_BEGIN(coreinit);
3 
47 IMPORT(OSGetSymbolName);
56 
57 IMPORT(exit);
58 IMPORT(_Exit);
60 IMPORT(DisassemblePPCRange);
61 
66 
68 
78 
79 IMPORT(FSInit);
104 IMPORT(FSMount);
106 
111 
118 
119 IMPORT_END();
120 
121 /* nsysnet */
122 IMPORT_BEGIN(nsysnet);
123 
132 IMPORT(ntohl);
133 IMPORT(ntohs);
134 IMPORT(htonl);
135 IMPORT(htons);
136 IMPORT(accept);
137 IMPORT(bind);
139 IMPORT(connect);
143 IMPORT(listen);
144 IMPORT(recv);
146 IMPORT(send);
147 IMPORT(sendto);
150 IMPORT(socket);
151 IMPORT(select);
153 
154 IMPORT_END();
155 
156 /* gx2 */
157 IMPORT_BEGIN(gx2);
158 
160 IMPORT(GX2Init);
210 
211 IMPORT_END();
212 
213 /* nn_ac */
214 IMPORT_BEGIN(nn_ac);
218 IMPORT(ACClose);
221 IMPORT_END();
222 
223 /* proc_ui */
224 IMPORT_BEGIN(proc_ui);
225 
228 
229 IMPORT_END();
230 
231 /* sndcore2 */
232 IMPORT_BEGIN(sndcore2);
233 
235 IMPORT(AXQuit);
247 
248 IMPORT_END();
249 
250 /* sysapp */
251 IMPORT_BEGIN(sysapp);
252 
255 
256 IMPORT_END();
257 
258 /* vpad */
259 IMPORT_BEGIN(vpad);
260 
264 
265 IMPORT_END();
266 
267 /* padscore */
268 IMPORT_BEGIN(padscore);
271 IMPORT(KPADSetConnectCallback);
272 
280 IMPORT_END();
281 
282 /* nsyskbd */
283 IMPORT_BEGIN(nsyskbd);
284 
287 
288 IMPORT_END();
289 
290 /* syshid */
291 #ifdef WIIU_HID
292 IMPORT_BEGIN(nsyshid);
293 
305 IMPORT(HIDRead);
307 
308 IMPORT_END();
309 #endif
void MEMFreeToFrmHeap(MEMFrameHeap *heap, MEMFrameHeapFreeMode mode)
void AXSetMultiVoiceSrcRatio(AXMVoice *mvoice, float ratio)
void FSInitCmdBlock(FSCmdBlock *block)
#define htonl(x)
Definition: inet.h:70
void DCFlushRange(void *startaddress, u32 len)
Flushes a given range.
uint32_t OSSuspendThread(OSThread *thread)
uint32_t OSGetCoreId()
const char * inet_ntop(int af, const void *cp, char *buf, socklen_t len)
BOOL OSJoinThread(OSThread *thread, int *threadResult)
void GX2InitSampler(GX2Sampler *sampler, GX2TexClampMode clampMode, GX2TexXYFilterMode minMagFilterMode)
int32_t HIDAddClient(HIDClient *p_client, HIDAttachCallback attach_callback)
ACResult ACConnect(void)
void freeaddrinfo(struct addrinfo *__ai)
int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
void DCInvalidateRange(void *startaddress, u32 len)
Invalidates a given range of the d-cache.
ACResult ACGetAssignedSubnet(ACIpAddress *addr)
s32 IMIsAPDEnabled(s32 *result)
int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen)
void DCStoreRange(void *startaddress, u32 len)
Ensures a range of memory is updated with any modified data in the cache.
void GX2SetViewport(float x, float y, float width, float height, float nearZ, float farZ)
ACResult ACClose(void)
void * MEMAllocFromFrmHeapEx(MEMFrameHeap *heap, uint32_t size, int alignment)
int32_t OSWaitSemaphore(OSSemaphore *semaphore)
#define ntohs(x)
Definition: inet.h:69
FSStatus FSFlushFile(FSClient *client, FSCmdBlock *block, FSFileHandle handle, uint32_t flags)
uint32_t MEMGetAllocatableSizeForFrmHeapEx(MEMFrameHeap *heap, int alignment)
void GX2SetTVBuffer(void *buffer, uint32_t size, GX2TVRenderMode tvRenderMode, GX2SurfaceFormat surfaceFormat, GX2BufferingMode bufferingMode)
void GX2InitFetchShaderEx(GX2FetchShader *fetchShader, uint8_t *buffer, uint32_t attribCount, GX2AttribStream *attribs, GX2FetchShaderType type, GX2TessellationMode tessMode)
FSStatus FSChangeDir(FSClient *client, FSCmdBlock *block, const char *path, uint32_t flags)
void socket_lib_init()
void ACFinalize(void)
void OSFastMutex_Unlock(OSFastMutex *mutex)
void GX2WaitForVsync()
BOOL GX2DrawDone()
void ProcUIShutdown()
uint32_t GX2CalcFetchShaderSizeEx(uint32_t attribs, GX2FetchShaderType fetchShaderType, GX2TessellationMode tesellationMode)
OSExceptionCallbackFn OSSetExceptionCallback(OSExceptionType exceptionType, OSExceptionCallbackFn callback)
FSStatus FSRewindDir(FSClient *client, FSCmdBlock *block, FSDirectoryHandle handle, uint32_t flags)
ssize_t recvfrom(int sockfd, void *buf, size_t len, int flags, struct sockaddr *src_addr, socklen_t *addrlen)
void GX2SetPixelSampler(GX2Sampler *sampler, uint32_t id)
void GX2CalcTVSize(GX2TVRenderMode tvRenderMode, GX2SurfaceFormat surfaceFormat, GX2BufferingMode bufferingMode, uint32_t *size, uint32_t *unkOut)
int32_t OSSignalSemaphore(OSSemaphore *semaphore)
void AXSetMultiVoiceDeviceMix(AXMVoice *mvoice, AXDeviceType type, u32 id, u32 bus, u16 vol, s16 delta)
int32_t HIDSetDescriptor(uint32_t handle, uint8_t descriptor_type, uint8_t descriptor_index, uint16_t language_id, uint8_t *p_buffer, uint32_t buffer_length, HIDCallback hc, void *p_user)
void GX2DrawEx(GX2PrimitiveMode mode, uint32_t count, uint32_t offset, uint32_t numInstances)
void OSScreenInit()
void OSFastMutex_Init(OSFastMutex *mutex, const char *name)
uint32_t GX2CalcGeometryShaderInputRingBufferSize(uint32_t ringItemSize)
char KBDSetup(void *connection_callback, void *disconnection_callback, void *key_callback)
void OSScreenEnableEx(OSScreenID screen, BOOL enable)
void MEMFreeToExpHeap(MEMExpandedHeap *heap, uint8_t *block)
int32_t HIDWrite(uint32_t handle, uint8_t *p_buffer, uint32_t buffer_length, HIDCallback hc, void *p_user)
BOOL OSIsThreadTerminated(OSThread *thread)
void GX2GetSwapStatus(uint32_t *swapCount, uint32_t *flipCount, OSTime *lastFlip, OSTime *lastVsync)
void OSScreenFlipBuffersEx(OSScreenID screen)
s32 KPADReadEx(s32 chan, KPADData *data, u32 size, s32 *error)
BOOL OSUninterruptibleSpinLock_Release(OSSpinLock *spinlock)
FSStatus FSGetStat(FSClient *client, FSCmdBlock *block, const char *path, FSStat *stat, uint32_t flags)
s32 KPADRead(s32 chan, void *data, u32 size)
FSStatus FSCloseFile(FSClient *client, FSCmdBlock *block, FSFileHandle handle, uint32_t flags)
int32_t HIDGetProtocol(uint32_t handle, uint8_t interface_index, uint8_t *protocol, HIDCallback hc, void *p_user)
MEMExpandedHeap * MEMCreateExpHeapEx(MEMExpandedHeap *heap, uint32_t size, uint16_t flags)
void OSSavesDone_ReadyToRelease()
void GX2SetGeometryUniformBlock(uint32_t location, uint32_t size, const void *data)
void * MEMAllocFromExpHeapEx(MEMExpandedHeap *heap, uint32_t size, int alignment)
void GX2CopyColorBufferToScanBuffer(GX2ColorBuffer *buffer, GX2ScanTarget scanTarget)
void FSInit()
Definition: civetweb.c:1041
IMPORT_BEGIN(coreinit)
uint32_t GX2CalcGeometryShaderOutputRingBufferSize(uint32_t ringItemSize)
FSStatus FSMount(FSClient *client, FSCmdBlock *cmd, FSMountSource *source, const char *target, uint32_t bytes, uint32_t flags)
int(* IOS_Open)(char *path, unsigned int mode)
void GX2SetShaderModeEx(GX2ShaderMode mode, uint32_t numVsGpr, uint32_t numVsStackEntries, uint32_t numGsGpr, uint32_t numGsStackEntries, uint32_t numPsGpr, uint32_t numPsStackEntries)
void GX2SetDRCEnable(BOOL enable)
u64 OSGetTitleID(void)
void OSDynLoad_Release(OSDynLoadModule module)
void SYSLaunchMenu()
void GX2SetCullOnlyControl(GX2FrontFace frontFace, BOOL cullFront, BOOL cullBack)
int getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags)
void OSFastMutex_Lock(OSFastMutex *mutex)
void OSWaitCond(OSCondition *condition, OSMutex *mutex)
void SYSRelaunchTitle(uint32_t argc, char *pa_Argv[])
ssize_t recv(int sockfd, void *buf, size_t len, int flags)
void OSInitSemaphoreEx(OSSemaphore *semaphore, int32_t count, const char *name)
void OSExitThread(int32_t result)
FSStatus FSSetPosFile(FSClient *client, FSCmdBlock *block, FSFileHandle handle, uint32_t pos, uint32_t flags)
int32_t OSDynLoad_Acquire(char const *name, OSDynLoadModule *outModule)
void GX2SetVertexShader(GX2VertexShader *shader)
int __os_snprintf(char *buf, int n, const char *format,...)
void GX2ClearColor(GX2ColorBuffer *colorBuffer, float red, float green, float blue, float alpha)
BOOL OSCreateThread(OSThread *thread, OSThreadEntryPointFn entry, int32_t argc, char *argv, void *stack, uint32_t stackSize, int32_t priority, OSThreadAttributes attributes)
void GX2SetScissor(uint32_t x, uint32_t y, uint32_t width, uint32_t height)
void GX2WaitForFlip()
FSStatus FSUnmount(FSClient *client, FSCmdBlock *cmd, const char *target, uint32_t flags)
void GX2SetVertexUniformBlock(uint32_t location, uint32_t size, const void *data)
int getpeername(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
int32_t HIDSetup(void)
void KPADInit(void)
void GX2SetAttribBuffer(uint32_t index, uint32_t size, uint32_t stride, void *buffer)
int getsockname(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
void AXSetMultiVoiceOffsets(AXMVoice *mvoice, AXVoiceOffsets *offsets)
BOOL OSIsMainCore()
int32_t HIDSetIdle(uint32_t handle, uint8_t interface_index, uint8_t duration, HIDCallback hc, void *p_user)
void GX2SetTVEnable(BOOL enable)
FSStatus FSOpenDir(FSClient *client, FSCmdBlock *block, const char *path, FSDirectoryHandle *handle, uint32_t flags)
ssize_t send(int sockfd, const void *buf, size_t len, int flags)
int32_t VPADRead(uint32_t chan, VPADStatus *buffers, uint32_t count, VPADReadError *error)
void GX2Shutdown()
void OSInitSemaphore(OSSemaphore *semaphore, int32_t count)
int32_t HIDGetDescriptor(uint32_t handle, uint8_t descriptor_type, uint8_t descriptor_index, uint16_t language_id, uint8_t *p_buffer, uint32_t buffer_length, HIDCallback hc, void *p_user)
void GX2SetPixelShader(GX2PixelShader *shader)
FSStatus FSRename(FSClient *client, FSCmdBlock *block, const char *oldPath, const char *newPath, uint32_t flags)
FSStatus FSReadFile(FSClient *client, FSCmdBlock *block, uint8_t *buffer, uint32_t size, uint32_t count, FSFileHandle handle, uint32_t unk1, uint32_t flags)
void AXFreeMultiVoice(AXMVoice *mvoice)
int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen)
ACResult ACInitialize(void)
ssize_t sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen)
char * inet_ntoa(struct in_addr addr)
Definition: network_common.c:136
void GX2InitColorBufferRegs(GX2ColorBuffer *colorBuffer)
#define OSLockMutex(mutex)
Definition: gx_pthread.h:48
ACResult ACGetAssignedAddress(ACIpAddress *addr)
IMPORT_END()
s32 WPADSetDataFormat(s32 chan, s32 format)
void GX2Init(uint32_t *attributes)
int socketclose(int sockfd)
void GX2SetSwapInterval(uint32_t interval)
FSStatus FSGetMountSource(FSClient *client, FSCmdBlock *cmd, FSMountSourceType type, FSMountSource *out, uint32_t flags)
BOOL OSUninterruptibleSpinLock_Acquire(OSSpinLock *spinlock)
int32_t OSDynLoad_FindExport(OSDynLoadModule module, int32_t isData, char const *name, void **outAddr)
OSTime OSGetSystemTime()
int32_t HIDSetReport(uint32_t handle, uint8_t report_type, uint8_t report_id, uint8_t *p_buffer, uint32_t buffer_length, HIDCallback hc, void *p_user)
BOOL OSGetSharedData(shared_data_type_t type, uint32_t flags, void **dst, uint32_t *size)
s32 IMDisableAPD(void)
void GX2SetGeometryShaderInputRingBuffer(void *buffer, uint32_t size)
void GX2SetDepthOnlyControl(BOOL depthTest, BOOL depthWrite, GX2CompareFunction depthCompare)
OSThreadCleanupCallbackFn OSSetThreadCleanupCallback(OSThread *thread, OSThreadCleanupCallbackFn callback)
void AXSetMultiVoiceState(AXMVoice *mvoice, AXVoiceState state)
FSStatus FSCloseDir(FSClient *client, FSCmdBlock *block, FSDirectoryHandle handle, uint32_t flags)
void GX2CalcDRCSize(GX2DrcRenderMode drcRenderMode, GX2SurfaceFormat surfaceFormat, GX2BufferingMode bufferingMode, uint32_t *size, uint32_t *unkOut)
void GX2Invalidate(GX2InvalidateMode mode, void *buffer, uint32_t size)
void GX2SetColorControl(GX2LogicOp rop3, uint8_t targetBlendEnable, BOOL multiWriteEnable, BOOL colorWriteEnable)
FSStatus FSWriteFile(FSClient *client, FSCmdBlock *block, uint8_t *buffer, uint32_t size, uint32_t count, FSFileHandle handle, uint32_t unk1, uint32_t flags)
IMPORT(OSScreenInit)
void AXRegisterFrameCallback(void *cb)
void AXAcquireMultiVoice(u32 prio, void *cb, u32 cbarg, void *setup, AXMVoice **mvoice)
FSStatus FSAddClientEx(FSClient *pClient, s32 unk_zero_param, uint32_t errHandling)
void VPADInit()
#define htons(x)
Definition: inet.h:68
FSStatus FSTruncateFile(FSClient *client, FSCmdBlock *block, FSFileHandle handle, uint32_t flags)
void WPADRead(s32 chan, void *data)
void VPADGetTPCalibratedPoint(uint32_t chan, VPADTouchData *calibratedData, VPADTouchData *uncalibratedData)
int32_t HIDGetReport(uint32_t handle, uint8_t report_type, uint8_t report_id, uint8_t *p_buffer, uint32_t buffer_length, HIDCallback hc, void *p_user)
FSStatus FSAddClient(FSClient *client, uint32_t flags)
int32_t OSResumeThread(OSThread *thread)
void DCStoreRangeNoSync(void *startaddress, u32 len)
Ensures a range of memory is updated with any modified data in the cache.
OSTick OSGetSystemTick()
void GX2SwapScanBuffers()
void AXSetMultiVoiceCurrentOffset(AXMVoice *mvoice, uint32_t offset)
void GX2SetupContextStateEx(GX2ContextState *state, BOOL unk1)
MEMHeapHandle MEMGetBaseHeapHandle(MEMBaseHeapType type)
int shutdown(int sockfd, int how)
s32 IOS_IoctlAsync(s32 fd, s32 ioctl, void *buffer_in, s32 len_in, void *buffer_io, s32 len_io, ipccallback ipc_cb, void *usrdata)
FSStatus FSRemove(FSClient *client, FSCmdBlock *block, const char *path, uint32_t flags)
void OSSleepTicks(OSTime ticks)
void GX2Flush()
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
s32 IMEnableAPD(void)
void GX2SetBlendControl(GX2RenderTarget target, GX2BlendMode colorSrcBlend, GX2BlendMode colorDstBlend, GX2BlendCombineMode colorCombine, BOOL useAlphaBlend, GX2BlendMode alphaSrcBlend, GX2BlendMode alphaDstBlend, GX2BlendCombineMode alphaCombine)
int32_t OSGetSemaphoreCount(OSSemaphore *semaphore)
int socketlasterr(void)
void GX2SetColorBuffer(GX2ColorBuffer *colorBuffer, GX2RenderTarget target)
void OSSignalCond(OSCondition *condition)
void GX2SetPixelTexture(GX2Texture *texture, uint32_t unit)
int32_t HIDDelClient(HIDClient *p_client)
int getsockopt(int sockfd, int level, int optname, void *optval, socklen_t *optlen)
int setsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen)
int getaddrinfo(const char *node, const char *service, struct addrinfo *hints, struct addrinfo **res)
s8_t inet_aton(const char *cp, struct in_addr *addr)
Definition: network_common.c:42
void AXInitWithParams(AXInitParams *params)
#define ntohl(x)
Definition: inet.h:71
BOOL OSIsThreadSuspended(OSThread *thread)
void GX2SetGeometryShaderOutputRingBuffer(void *buffer, uint32_t size)
FSStatus FSDelClient(FSClient *client, uint32_t flags)
void OSScreenPutFontEx(OSScreenID screen, uint32_t row, uint32_t column, const char *buffer)
int listen(int sockfd, int backlog)
OSThread * OSGetCurrentThread()
#define OSUnlockMutex(mutex)
Definition: gx_pthread.h:52
int inet_pton(int af, const char *cp, void *buf)
GX2TVScanMode GX2GetSystemTVScanMode()
#define OSInitMutex(mutex)
Definition: gx_pthread.h:44
void AXSetMultiVoiceVe(AXMVoice *mvoice, AXVoiceVeData *veData)
FSStatus FSOpenFile(FSClient *client, FSCmdBlock *block, const char *path, const char *mode, FSFileHandle *handle, uint32_t flags)
s32 * __gh_errno_ptr(void)
FSStatus FSMakeDir(FSClient *client, FSCmdBlock *block, const char *path, uint32_t flags)
FSStatus FSGetFreeSpaceSize(FSClient *client, FSCmdBlock *block, char *path, u64 *outSize, uint32_t flags)
int32_t OSTryWaitSemaphore(OSSemaphore *semaphore)
char KBDTeardown()
void ProcUIInit(ProcUISaveCallback saveCallback)
void GX2SetContextState(GX2ContextState *state)
s32 IMIsDimEnabled(s32 *result)
FSStatus FSGetStatFile(FSClient *client, FSCmdBlock *block, FSFileHandle handle, FSStat *stat, uint32_t flags)
void GX2SetPixelUniformBlock(uint32_t location, uint32_t size, const void *data)
uint32_t MEMGetSizeForMBlockExpHeap(uint8_t *addr)
OSTime OSGetTime()
int(* IOS_Ioctl)(int fd, unsigned int request, void *input_buffer, unsigned int input_buffer_len, void *output_buffer, unsigned int output_buffer_len)
FSStatus FSReadDir(FSClient *client, FSCmdBlock *block, FSDirectoryHandle handle, FSDirectoryEntry *entry, uint32_t flags)
int32_t HIDRead(uint32_t handle, uint8_t *p_buffer, uint32_t buffer_length, HIDCallback hc, void *p_user)
uint32_t OSEffectiveToPhysical(void *vaddr)
BOOL OSSetThreadPriority(OSThread *thread, int32_t priority)
int(* IOS_Close)(int fd)
void OSScreenSetBufferEx(OSScreenID screen, void *addr)
s32 IMEnableDim(void)
void KPADShutdown(void)
void GX2InitTextureRegs(GX2Texture *texture)
int32_t HIDSetProtocol(uint32_t handle, uint8_t interface_index, uint8_t protocol, HIDCallback hc, void *p_user)
s32 IMDisableDim(void)
void OSYieldThread()
void GX2CalcSurfaceSizeAndAlignment(GX2Surface *surface)
void GX2SetGeometryShader(GX2GeometryShader *shader)
bool AXIsMultiVoiceRunning(AXMVoice *mvoice)
s32 WPADProbe(s32 chan, u32 *pad_type)
void FSShutdown()
void WPADEnableURCC(s32 enable)
void GX2SetBlendConstantColor(float red, float green, float blue, float alpha)
int32_t HIDTeardown(void)
MEMExpandedHeap * MEMDestroyExpHeap(MEMExpandedHeap *heap)
void AXQuit()
void GX2SetDRCBuffer(void *buffer, uint32_t size, GX2DrcRenderMode drcRenderMode, GX2SurfaceFormat surfaceFormat, GX2BufferingMode bufferingMode)
void AXSetMultiVoiceSrcType(AXMVoice *mvoice, AXVoiceSrcType type)
uint32_t OSScreenGetBufferSizeEx(OSScreenID screen)
void OSInitCond(OSCondition *condition)
void OSInitSpinLock(OSSpinLock *spinlock)
void GX2SetFetchShader(GX2FetchShader *shader)
void OSScreenClearBufferEx(OSScreenID screen, uint32_t colour)
void OSFatal(const char *msg)
void WPADEnableWiiRemote(s32 enable)