Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 32) sorted by relevance

12

/CTR-SDK-0.13.2/include/nn/net/compatible/nhttp/
Dnhttp.h185 typedef s32 (*NHTTPConnectionCallback)(NHTTPConnectionHandle handle, NHTTPConnectionEvent event, vo…
251 s32 NHTTP_DestroyConnection(NHTTPConnectionHandle handle);
252 s32 NHTTP_StartConnection(NHTTPConnectionHandle handle);
253 s32 NHTTP_StartConnectionAsync(NHTTPConnectionHandle handle);
254 s32 NHTTP_CancelConnection(NHTTPConnectionHandle handle);
255 s32 NHTTP_WaitForConnection(NHTTPConnectionHandle handle);
256 s32 NHTTP_GetConnectionStatus(NHTTPConnectionHandle handle);
257 s32 NHTTP_GetConnectionProgress(NHTTPConnectionHandle handle, u32 *received, u32 *contentLen);
258 s32 NHTTP_GetConnectionError(NHTTPConnectionHandle handle);
259 s32 NHTTP_GetConnectionSSLError(NHTTPConnectionHandle handle);
[all …]
/CTR-SDK-0.13.2/include/nn/http/
Dhttp_ConnectionIpc.h107 nn::Result DestroyConnection( ConnectionHandle handle );
108 nn::Result CancelConnection( ConnectionHandle handle );
109 nn::Result GetConnectionStatus( ConnectionHandle handle, Status* statusCourier );
110 …nn::Result GetConnectionProgress( ConnectionHandle handle, size_t* receivedSizeCourier, size_t* co…
111 nn::Result GetConnectionError( ConnectionHandle handle, ResultCode* resultCodeCourier );
112 nn::Result InitializeConnectionSession( ConnectionHandle handle );
113 nn::Result StartConnection( ConnectionHandle handle );
114 nn::Result StartConnectionAsync( ConnectionHandle handle );
115 nn::Result ReadBody( ConnectionHandle handle, u8 bodyCourier[], size_t bodyCourierLen );
116 …nn::Result ReadBodyWithTimeout( ConnectionHandle handle, u8 bodyCourier[], size_t bodyCourierLen, …
[all …]
/CTR-SDK-0.13.2/include/nn/fslow/
Dfslow_ArchiveMapFileSystem.h67 ArchiveHandle handle = GetSelf().GetHandleTable().Register(archive); in AddArchive() local
68 if (!handle) in AddArchive()
73 Result result = GetSelf().RegisterToNameMap(name, handle); in AddArchive()
76 GetSelf().GetHandleTable().Unregister(handle); in AddArchive()
83 ArchiveHandle handle; in RemoveArchive() local
84 NN_UTIL_RETURN_IF_FAILED(GetSelf().GetArchiveHandle(&handle, name)); in RemoveArchive()
86 GetSelf().GetHandleTable().Unregister(handle); in RemoveArchive()
104 ArchiveHandle handle; in OpenFile() local
105 NN_UTIL_RETURN_IF_FAILED(GetSelf().GetArchiveHandle(&handle, name)); in OpenFile()
108 Accessor acc(GetSelf().GetHandleTable(), handle); in OpenFile()
[all …]
Dfslow_SafeHandle.h270 …bool HasHandle(const SafeHandle& handle) const { return IsInitialized() && (handle == m_Han… in HasHandle() argument
300 void Unregister(SafeHandle handle);
302 void* LockHandle(SafeHandle handle) in LockHandle() argument
304 SafeHandleTableEntry* entry = FindEntry(handle); in LockHandle()
305 return LockEntry(entry, handle) ? entry->GetObject() : 0; in LockHandle()
308 void UnlockHandle(SafeHandle handle) { return UnlockEntry(FindEntry(handle)); } in UnlockHandle() argument
321 Accessor(SafeHandleTable& table, SafeHandle handle) in Accessor() argument
323 SafeHandleTableEntry* entry = table.FindEntry(handle); in Accessor()
324 this->m_pEntry = LockEntry(entry, handle) ? entry : 0; in Accessor()
341 static bool LockEntry(SafeHandleTableEntry* pEntry, SafeHandle handle);
[all …]
Dfslow_HandleTable.h230 Handle handle(value); in FindEntryFromHandle()
231 s32 index = handle.GetFixedValue(); in FindEntryFromHandle()
/CTR-SDK-0.13.2/sources/libraries/os/
Dos_HandleManager.cpp23 void nnosHandleManagerAttachEventHandle(nnosEvent* p, nnHandle handle) in nnosHandleManagerAttachEventHandle() argument
26 HandleManager::AttachHandle(pEvent, handle); in nnosHandleManagerAttachEventHandle()
35 void nnosHandleManagerAttachMutexHandle(nnosMutex* p, nnHandle handle) in nnosHandleManagerAttachMutexHandle() argument
38 HandleManager::AttachHandle(pMutex, handle); in nnosHandleManagerAttachMutexHandle()
47 void nnosHandleManagerAttachSemaphoreHandle(nnosSemaphore* p, nnHandle handle) in nnosHandleManagerAttachSemaphoreHandle() argument
50 HandleManager::AttachHandle(pSemaphore, handle); in nnosHandleManagerAttachSemaphoreHandle()
59 void nnosHandleManagerAttachTimerHandle(nnosTimer* p, nnHandle handle) in nnosHandleManagerAttachTimerHandle() argument
62 HandleManager::AttachHandle(pTimer, handle); in nnosHandleManagerAttachTimerHandle()
72 void nnosHandleManagerAttachSharedMemoryHandle(nnosSharedMemoryBlock* p, nnHandle handle) in nnosHandleManagerAttachSharedMemoryHandle() argument
75 HandleManager::AttachHandle(pSharedMemoryBlock, handle); in nnosHandleManagerAttachSharedMemoryHandle()
Dos_TransferMemoryBlock.cpp39 Handle handle; in Initialize() local
41 …result = nn::svc::CreateMemoryBlock(&handle, reinterpret_cast<uptr>(p), size, myPermission, otherP… in Initialize()
43 this->SetHandle(handle); in Initialize()
59 Handle handle; in TryInitialize() local
61 …result = nn::svc::CreateMemoryBlock(&handle, reinterpret_cast<uptr>(p), size, myPermission, otherP… in TryInitialize()
63 this->SetHandle(handle); in TryInitialize()
82 Handle handle, in AttachAndMap() argument
89 this->SetHandle(handle); in AttachAndMap()
Dos_SharedMemory.cpp101 Handle handle; in TryInitialize() local
103 result = nn::svc::CreateMemoryBlock(&handle, NULL, size, myPermission, otherPermission); in TryInitialize()
105 this->SetHandle(handle); in TryInitialize()
119 void SharedMemoryBlock::AttachAndMap(Handle handle, size_t size, bool readOnly) in AttachAndMap() argument
124 this->SetHandle(handle); in AttachAndMap()
Dos_Thread.cpp212 Handle handle; in TryInitializeAndStartImpl() local
215 &handle, in TryInitializeAndStartImpl()
222 this->SetHandle(handle); in TryInitializeAndStartImpl()
267 Handle handle; in Thread() local
268 NN_UTIL_PANIC_IF_FAILED(nn::svc::DuplicateHandle(&handle, PSEUDO_HANDLE_CURRENT_THREAD)); in Thread()
269 this->SetHandle(handle); in Thread()
/CTR-SDK-0.13.2/include/nn/
DHandle.h88 Handle(nnHandle handle) : m_Handle(handle.value) in Handle() argument
92 explicit Handle(bit32 handle) in Handle() argument
94 m_Handle = handle; in Handle()
121 operator nnHandle() const { nnHandle handle = {this->m_Handle}; return handle; } in nnHandle() local
/CTR-SDK-0.13.2/include/nn/ssl/
Dssl_ConnectionIpc.h100 nn::Result InitializeConnectionSession( ConnectionHandle handle );
101 nn::Result DoHandshake( ConnectionHandle handle );
102 …nn::Result DoHandshakeWithGetServerCertInfo( ConnectionHandle handle, size_t* pServerCertSizeCouri…
103 …nn::Result Read( ConnectionHandle handle, u8 pDataBuf[], size_t dataBufSize, size_t* pReadSizeCour…
104 …nn::Result Peek( ConnectionHandle handle, u8 pDataBuf[], size_t dataBufSize, size_t* pReadSizeCour…
105 …nn::Result Write( ConnectionHandle handle, const u8 pDataBuf[], size_t dataBufSize, size_t* pWritt…
106 nn::Result SetServerCertStore( ConnectionHandle handle, CertStoreId certStoreId );
107 nn::Result SetClientCert( ConnectionHandle handle, CertId certId );
108 nn::Result SetCrlStore( ConnectionHandle handle, CrlStoreId certStoreId );
109 nn::Result DisableVerifyOptionForDebug( ConnectionHandle handle, u32 excludeVerifyOptions );
[all …]
/CTR-SDK-0.13.2/include/nn/fnd/
Dfnd_BufferManager.h59 void Register(CacheHandle handle, nn::fnd::MemoryRange memoryRange) in Register() argument
62 this->m_Handle = handle; in Register()
74 bool HasHandle(CacheHandle handle) in HasHandle() argument
76 NN_TASSERT_(handle != 0); in HasHandle()
77 return handle == m_Handle; in HasHandle()
89 Entry* FindEntry(CacheHandle handle) in FindEntry() argument
93 if (m_Entries[i].HasHandle(handle)) in FindEntry()
131 CacheHandle handle = PublishCacheHandle(); in Register() local
132 p->Register(handle, memoryRange); in Register()
134 *pOut = handle; in Register()
[all …]
/CTR-SDK-0.13.2/include/nn/applet/CTR/
Dapplet_API.h73 …void AttachSharedMemoryHandle( os::SharedMemoryBlock* sharedMemory, nn::Handle handle, size_t size…
77 …Result SendMessage( AppletId receiverId, const u8* pParam, size_t paramSize, nn::Handle handle=NN_…
78 …age( AppletId receiverId, const u8* pParam, size_t paramSize, nn::Handle handle=NN_APPLET_HANDLE_N…
100 …ryApplet( AppletId id, const u8* pParam=NULL, size_t paramSize=0, Handle handle=NN_APPLET_HANDLE_N…
107 …Result CloseApplication( const u8* pParam=NULL, size_t paramSize=0, Handle handle=NN_APPLET_HANDLE…
111 …Result JumpToHomeMenu( const u8* pParam=NULL, size_t paramSize=0, Handle handle=NN_APPLET_HANDLE_N…
435 …inline void AttachSharedMemoryHandle( os::SharedMemoryBlock* sharedMemory, nn::Handle handle, size… in AttachSharedMemoryHandle() argument
437 detail::AttachSharedMemoryHandle( sharedMemory, handle, size, readOnly ); in AttachSharedMemoryHandle()
456 …age( AppletId receiverId, const u8* pParam, size_t paramSize, nn::Handle handle=NN_APPLET_HANDLE_N…
458 return detail::SendMessage( receiverId, pParam, paramSize, handle, timeout );
[all …]
Dapplet_Ipc.h131 …raryApplet( nn::applet::CTR::AppletId id, const u8 pParam[], size_t paramSize, nn::Handle handle );
132 …stemApplet( nn::applet::CTR::AppletId id, const u8 pParam[], size_t paramSize, nn::Handle handle );
133 …raryApplet( nn::applet::CTR::AppletId id, const u8 pParam[], size_t paramSize, nn::Handle handle );
138 … static nn::Result CloseApplication( const u8 pParam[], size_t paramSize, nn::Handle handle );
139 … static nn::Result CloseLibraryApplet( const u8 pParam[], size_t paramSize, nn::Handle handle );
140 …atic nn::Result CloseSystemLibraryApplet( const u8 pParam[], size_t paramSize, nn::Handle handle );
142 static nn::Result JumpToHomeMenu( const u8 pParam[], size_t paramSize, nn::Handle handle );
144 static nn::Result LeaveHomeMenu( const u8 pParam[], size_t paramSize, nn::Handle handle );
146 … static nn::Result LeaveResidentApplet( const u8 pParam[], size_t paramSize, nn::Handle handle );
148 static nn::Result JumpShortCut( const u8 pParam[], size_t paramSize, nn::Handle handle );
[all …]
/CTR-SDK-0.13.2/include/nn/os/
Dos_HandleObject.h91 void SetHandle(nn::Handle handle);
132 inline void HandleObject::SetHandle(nn::Handle handle) in SetHandle() argument
135 NN_TASSERT_(handle.IsValid()); in SetHandle()
137 m_Handle = handle; in SetHandle()
Dos_Mutex.h173 Handle handle; in TryInitializeImpl() local
174 NN_UTIL_RETURN_IF_FAILED(nn::svc::CreateMutex(&handle, initialLocked)); in TryInitializeImpl()
175 this->SetHandle(handle); in TryInitializeImpl()
Dos_Semaphore.h147 Handle handle; in TryInitializeImpl() local
148 NN_UTIL_RETURN_IF_FAILED(nn::svc::CreateSemaphore(&handle, initialCount, maxCount)); in TryInitializeImpl()
149 this->SetHandle(handle); in TryInitializeImpl()
Dos_Event.h60 Handle handle; in TryInitializeImpl() local
61 NN_UTIL_RETURN_IF_FAILED(nn::svc::CreateEvent(&handle, resetType)); in TryInitializeImpl()
62 this->SetHandle(handle); in TryInitializeImpl()
Dos_Timer.h168 Handle handle; in TryInitializeImpl() local
169 NN_UTIL_RETURN_IF_FAILED(nn::svc::CreateTimer(&handle, isManualReset)); in TryInitializeImpl()
170 this->SetHandle(handle); in TryInitializeImpl()
Dos_TransferMemoryBlock.h56 Handle handle,
Dos_Synchronization.h154 Handle handle = GetHandle(); in WaitOneImpl() local
155 return nn::svc::WaitSynchronization(&dummy, &handle, 1, false, nanoSecondsTimeout); in WaitOneImpl()
/CTR-SDK-0.13.2/sources/libraries/fslow/
Dfslow_SafeHandle.cpp301 void SafeHandleTable::Unregister(SafeHandle handle) in Unregister() argument
307 if(handle.IsValid()) in Unregister()
309 UnregisterRecursive(handle.GetFixedValue()); in Unregister()
354 bool SafeHandleTable::LockEntry(SafeHandleTableEntry* pEntry, SafeHandle handle) in LockEntry() argument
362 if (pEntry->HasHandle(handle)) in LockEntry()
405 SafeHandleTableEntry* SafeHandleTable::FindEntry(SafeHandle handle) const in FindEntry()
411 if(handle.IsValid()) in FindEntry()
414 SafeHandleTableEntry* pEntry = GetEntry(handle.GetFixedValue()); in FindEntry()
415 if(pEntry && pEntry->HasHandle(handle)) in FindEntry()
/CTR-SDK-0.13.2/include/nn/fs/CTR/MPCore/
Dfs_FileBase.h65 void OpenDirect(Handle handle) in OpenDirect() argument
67 UserFileSystem::OpenDirect(&m_P, handle); in OpenDirect()
85 Result TryInitializeRaw(ArchiveHandle handle, const nn::fs::CTR::MPCore::Path& path, bit32 mode) in TryInitializeRaw() argument
87 return UserFileSystem::TryOpenFileRaw(&m_P, handle, path, mode); in TryInitializeRaw()
Dfs_DirectoryBase.h41 Result TryInitializeRaw(ArchiveHandle handle, const nn::fs::CTR::MPCore::Path& path) in TryInitializeRaw() argument
43 return UserFileSystem::TryOpenDirectoryRaw(&m_P, handle, path); in TryInitializeRaw()
Dfs_UserFileSystem.h41 static Result Initialize(nn::Handle handle);
45 static void OpenDirect(void** pOut, Handle handle);

12