Difference between revisions of "NPNS services"

From Nintendo Switch Brew
Jump to navigation Jump to search
Line 36: Line 36:
 
| 111 || GetJid
 
| 111 || GetJid
 
|-
 
|-
| 120 || [7.0.0+] (No input, returns an [[#IUnknown]])
+
| 120 || [7.0.0+] CreateNotificationReceiver
 
|}
 
|}
  
== IUnknown ==
+
== INotificationReceiver ==
 
 
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
 
! Cmd || Name || Notes
 
! Cmd || Name || Notes
 
|-
 
|-
| 1 || || Takes a total of 8-bytes of input, no output.
+
| 1 || ListenTo || Takes a total of 8-bytes of input, no output.
 
|-
 
|-
| 2 || || Takes a total of 8-bytes of input and a PID, no output.
+
| 2 || ListenToMyApplicationId || Takes a total of 8-bytes of input and a PID, no output.
 
|-
 
|-
| 3 || || Takes a total of 2-bytes of input and a type-0x6 output buffer.
+
| 3 || Receive || Takes a total of 2-bytes of input and a type-0x6 output buffer.
 
|-
 
|-
| 4 || || No input, returns an output handle.
+
| 4 || GetReceiveEvent || No input, returns an output handle.
 
|}
 
|}
  

Revision as of 18:01, 13 February 2019

npns:u

This is "nn::npns::INpnsUser".

Cmd Name
1 ListenAll
2 ListenTo
3 Receive
4 ReceiveRaw
5 GetReceiveEvent
7 GetStateChangeEvent
21 CreateToken
23 DestroyToken
25 QueryIsTokenValid
26 [6.0.0+] ListenToMyApplicationId
101 Suspend
102 Resume
103 GetState
104 GetStatistics
111 GetJid
120 [7.0.0+] CreateNotificationReceiver

INotificationReceiver

Cmd Name Notes
1 ListenTo Takes a total of 8-bytes of input, no output.
2 ListenToMyApplicationId Takes a total of 8-bytes of input and a PID, no output.
3 Receive Takes a total of 2-bytes of input and a type-0x6 output buffer.
4 GetReceiveEvent No input, returns an output handle.

npns:s

This is "nn::npns::INpnsSystem".

Cmd Name
1 ListenAll
2 ListenTo
3 Receive
4 ReceiveRaw
5 GetReceiveEvent
6 ListenUndelivered
7 GetStateChangeEvent
11 SubscribeTopic
12 UnsubscribeTopic
13 QueryIsTopicExist
21 CreateToken
22 CreateTokenWithApplicationId
23 DestroyToken
24 DestroyTokenWithApplicationId
25 QueryIsTokenValid
31 UploadTokenToBaaS
32 DestroyTokenForBaaS
33 [6.0.0+] CreateTokenForBaas
34 [6.0.0+] SetBaasDeviceAccountIdList
101 Suspend
102 Resume
103 GetState
104 GetStatistics
105 GetPlayReportRequestEvent
111 GetJid
112 CreateJid
113 DestroyJid
114 AttachJid
115 DetachJid
201 RequestChangeStateForceTimed
202 RequestChangeStateForceAsync