Changes

1,199 bytes added ,  22:42, 14 November 2019
Line 1,186: Line 1,186:  
No input, returns an output Event handle with autoclear=false.
 
No input, returns an output Event handle with autoclear=false.
   −
This is used by sdknso during applet-application initialization. A seperate thread is setup where event-waiting is handled. When the Event is signaled, official sw will assert.
+
This is used by sdknso during applet-application initialization. A separate thread is setup where event-waiting is handled. When the Event is signaled, official sw will assert.
    
==== GetFriendInvitationStorageChannelEvent ====
 
==== GetFriendInvitationStorageChannelEvent ====
 
No input, returns an output Event handle with EventClearMode=0.
 
No input, returns an output Event handle with EventClearMode=0.
 +
 +
This is exposed by sdknso under <code>nn::friends::</code>. This returns a ptr to the cached Event in global state, with the Event being loaded if not previously initialized.
    
==== TryPopFromFriendInvitationStorageChannel ====
 
==== TryPopFromFriendInvitationStorageChannel ====
Line 1,195: Line 1,197:     
This uses the same StorageChannel as [[#PushToFriendInvitationStorageChannel]].
 
This uses the same StorageChannel as [[#PushToFriendInvitationStorageChannel]].
 +
 +
This is exposed by sdknso under <code>nn::friends::</code>. When the storage_size is <0x10, this returns 0. <code>data_size = storage_size-0x10;</code> Then the first 0x10-bytes from storage are read to stack, which is later copied to the output Uid on success prior to returning. Then the storage is read into the specified output buffer with storage-offset 0x10, where the size is <code>size = data_size > buf_size ? buf_size : data_size</code>. Reading is skipped if size is zero. Afterwards the used size is written to an output param.
    
==== GetNotificationStorageChannelEvent ====
 
==== GetNotificationStorageChannelEvent ====
 
No input, returns an output Event handle with EventClearMode=0.
 
No input, returns an output Event handle with EventClearMode=0.
 +
 +
This is exposed by sdknso under <code>nn::notification::</code>. This returns a ptr to the cached Event in global state, with the Event being loaded if not previously initialized.
    
==== TryPopFromNotificationStorageChannel ====
 
==== TryPopFromNotificationStorageChannel ====
Line 1,203: Line 1,209:     
This uses the same StorageChannel as [[#PushToNotificationStorageChannel]].
 
This uses the same StorageChannel as [[#PushToNotificationStorageChannel]].
 +
 +
This is exposed by sdknso under <code>nn::notification::</code>. The storage is read into the specified output buffer, where the size is <code>size = storage_size > buf_size ? buf_size : storage_size</code>. Reading is skipped if size is zero. Afterwards the used size is written to an output param.
    
==== GetHealthWarningDisappearedSystemEvent ====
 
==== GetHealthWarningDisappearedSystemEvent ====