Imported Doxyfile. Added svcClearEvent. Added more libnx errors to result.h. Updated viInitialize for using error LIBNX_ALREADYINITIALIZED.

This commit is contained in:
yellows8 2017-10-09 20:54:29 -04:00
parent 99bd9c76aa
commit 8308791835
5 changed files with 2421 additions and 1 deletions

2412
nx/Doxyfile Normal file

File diff suppressed because it is too large Load Diff

View File

@ -24,3 +24,5 @@
#define LIBNX_ALREADYMAPPED 3
#define LIBNX_BADGETINFO 4
#define LIBNX_BADQUERYMEMORY 5
#define LIBNX_ALREADYINITIALIZED 6
#define LIBNX_NOTINITIALIZED 7

View File

@ -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);

View File

@ -66,6 +66,11 @@ SVC_BEGIN svcSleepThread
ret
SVC_END
SVC_BEGIN svcClearEvent
svc 0x12
ret
SVC_END
SVC_BEGIN svcCloseHandle
svc 0x16
ret

View File

@ -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;