libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
sm.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include<libtransistor/cpp/types.hpp>
11 #include<expected.hpp>
12 
13 namespace trn {
14 namespace service {
15 
16 class SM {
17  public:
18  static Result<SM> Initialize();
19  SM(const SM& other);
20  SM(SM&& other);
21  ~SM();
22 
23  Result<ipc::client::Object> GetService(const char *name);
24  Result<KPort> RegisterService(const char *name, uint32_t max_sessions);
25 
26  private:
27  SM(); // use SM::Initialize
28 };
29 
30 }
31 }
IPC (C++ header)
Definition: sm.hpp:16
IPC client template library (C++ header)