Services API: Difference between revisions

No edit summary
Remove duplicate
 
(2 intermediate revisions by one other user not shown)
Line 34: Line 34:
Takes an input [[#ServiceName|ServiceName]], an input bool '''IsLight''' and an input s32 '''MaxSessions'''. Returns an output Service handle.
Takes an input [[#ServiceName|ServiceName]], an input bool '''IsLight''' and an input s32 '''MaxSessions'''. Returns an output Service handle.


[S2] [20.1.0+] Now takes an additional input u32.
[S2] [20.0.0+] Now takes an input [[#ServiceSpace|ServiceSpace]], a [[#ServiceName|ServiceName]], an input bool '''IsLight''' and an input s32 '''MaxSessions'''. Returns an output Service handle.


== UnregisterService ==
== UnregisterService ==
Takes an input [[#ServiceName|ServiceName]]. No output.
Takes an input [[#ServiceName|ServiceName]]. No output.


[S2] [20.1.0+] Now takes an additional input u32.
[S2] [20.0.0+] Now takes an input [[#ServiceSpace|ServiceSpace]] and a [[#ServiceName|ServiceName]]. No output.


== DetachClient ==
== DetachClient ==
Line 58: Line 58:
|-
|-
| 2 || [S2] [[#RegisterProcess2|RegisterProcess2]]
| 2 || [S2] [[#RegisterProcess2|RegisterProcess2]]
|-
| 3 || [S2] [20.0.0+] [[#EnableServiceSwitchType1Debug|EnableServiceSwitchType1Debug]]
|}
|}


Line 70: Line 72:
== RegisterProcess2 ==
== RegisterProcess2 ==
Takes an input u64 PID, a [[#ServiceSwitchType]], and two type-0x5 input buffers.
Takes an input u64 PID, a [[#ServiceSwitchType]], and two type-0x5 input buffers.
== EnableServiceSwitchType1Debug ==
No input/output.


= ServiceName =
= ServiceName =
Line 76: Line 81:
= ServiceSwitchType =
= ServiceSwitchType =
This is u8 enum "nn::sm::ServiceSwitchType".
This is u8 enum "nn::sm::ServiceSwitchType".
This is Switch 2 exclusive.
= ServiceSpace =
This is u32 enum "nn::sm::ServiceSpace".


This is Switch 2 exclusive.
This is Switch 2 exclusive.
Line 307: Line 317:
| style="background: green" | Yes
| style="background: green" | Yes
| pl:u
| pl:u
| [[NS Services]]
|
|-
| style="background: green" | Yes
| style="background: green" | Yes
| ovln:rcv
| [[NS Services]]
|
|-
| style="background: green" | Yes
| style="background: green" | Yes
| ovln:snd
| [[NS Services]]
| [[NS Services]]
|  
|  
Line 2,497: Line 2,495:
| style="background: green" | Yes
| style="background: green" | Yes
| gsv:m
| gsv:m
| [[(Switch 2) GSV services|GSV services]]
| [[Switch 2: GSV services|GSV services]]
|  
|  
|-
|-
Line 2,503: Line 2,501:
| style="background: green" | Yes
| style="background: green" | Yes
| gsv:t
| gsv:t
| [[(Switch 2) GSV services|GSV services]]
| [[Switch 2: GSV services|GSV services]]
|  
|  
|-
|-
Line 2,509: Line 2,507:
| style="background: green" | Yes
| style="background: green" | Yes
| gsv:sv
| gsv:sv
| [[(Switch 2) GSV services|GSV services]]
| [[Switch 2: GSV services|GSV services]]
|  
|  
|-
|-
Line 2,515: Line 2,513:
| style="background: green" | Yes
| style="background: green" | Yes
| gsv:s3
| gsv:s3
| [[(Switch 2) GSV services|GSV services]]
| [[Switch 2: GSV services|GSV services]]
|  
|  
|-
|-
Line 2,521: Line 2,519:
| style="background: green" | Yes
| style="background: green" | Yes
| gsv:s4
| gsv:s4
| [[(Switch 2) GSV services|GSV services]]
| [[Switch 2: GSV services|GSV services]]
|  
|  
|-
|-
Line 2,665: Line 2,663:
| style="background: green" | Yes
| style="background: green" | Yes
| [20.1.0+] cam:u
| [20.1.0+] cam:u
|  
| [[Switch 2: Camera services|Camera services]]
|  
|  
|-
|-
Line 2,671: Line 2,669:
| style="background: green" | Yes
| style="background: green" | Yes
| [20.1.0+] cam:s
| [20.1.0+] cam:s
|  
| [[Switch 2: Camera services|Camera services]]
|  
|  
|-
|-
Line 2,677: Line 2,675:
| style="background: green" | Yes
| style="background: green" | Yes
| [20.1.0+] cam:m
| [20.1.0+] cam:m
|  
| [[Switch 2: Camera services|Camera services]]
|  
|  
|-
|-
Line 2,688: Line 2,686:
| style="background: red" | No
| style="background: red" | No
| style="background: green" | Yes
| style="background: green" | Yes
| [20.1.0+] stpl:u
| [20.0.0+] stpl:u
|  
|  
|  
|  
Line 2,694: Line 2,692:
| style="background: red" | No
| style="background: red" | No
| style="background: green" | Yes
| style="background: green" | Yes
| [20.1.0+] stpl:sys
| [20.0.0+] stpl:sys
|  
|  
|  
|  
Line 2,700: Line 2,698:
| style="background: red" | No
| style="background: red" | No
| style="background: green" | Yes
| style="background: green" | Yes
| [20.1.0+] stpl:dbg
| [20.0.0+] stpl:dbg
|  
|  
|  
|  
|}
|}