mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Imported Doxyfile. Added svcClearEvent. Added more libnx errors to result.h. Updated viInitialize for using error LIBNX_ALREADYINITIALIZED.
This commit is contained in:
parent
99bd9c76aa
commit
8308791835
2412
nx/Doxyfile
Normal file
2412
nx/Doxyfile
Normal file
File diff suppressed because it is too large
Load Diff
@ -24,3 +24,5 @@
|
||||
#define LIBNX_ALREADYMAPPED 3
|
||||
#define LIBNX_BADGETINFO 4
|
||||
#define LIBNX_BADQUERYMEMORY 5
|
||||
#define LIBNX_ALREADYINITIALIZED 6
|
||||
#define LIBNX_NOTINITIALIZED 7
|
||||
|
@ -49,6 +49,7 @@ Result svcCreateThread(Handle* out, void* entry, void* arg, void* stack_top, int
|
||||
Result svcStartThread(Handle handle);
|
||||
void NORETURN svcExitThread();
|
||||
Result svcSleepThread(u64 nano);
|
||||
Result svcClearEvent(Handle handle);
|
||||
Result svcCloseHandle(Handle handle);
|
||||
Result svcCreateTransferMemory(Handle* out, void* addr, size_t size, u32 perm);
|
||||
Result svcWaitSynchronization(s32* index, const Handle* handles, s32 handleCount, u64 timeout);
|
||||
|
@ -66,6 +66,11 @@ SVC_BEGIN svcSleepThread
|
||||
ret
|
||||
SVC_END
|
||||
|
||||
SVC_BEGIN svcClearEvent
|
||||
svc 0x12
|
||||
ret
|
||||
SVC_END
|
||||
|
||||
SVC_BEGIN svcCloseHandle
|
||||
svc 0x16
|
||||
ret
|
||||
|
@ -13,7 +13,7 @@ static Result _viGetSession(Handle sessionhandle, Handle* handle_out, void* inra
|
||||
static Result _viGetSessionNoParams(Handle sessionhandle, Handle* handle_out, u64 cmd_id);
|
||||
|
||||
Result viInitialize(viServiceType servicetype) {
|
||||
if(g_viServiceType!=-1)return -1;
|
||||
if(g_viServiceType!=-1)return MAKERESULT(MODULE_LIBNX, LIBNX_ALREADYINITIALIZED);
|
||||
|
||||
Result rc = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user