libtransistor
A userland library for the Nintendo Switch
|
Service Manager. More...
Go to the source code of this file.
Functions | |
result_t | sm_init () |
Initialize Service Manager. | |
result_t | sm_get_service (ipc_object_t *session, const char *name) |
Get a service by name. More... | |
result_t | sm_get_service_ex (ipc_object_t *session, const char *name, bool require_override) |
Get a service by name, optinally requiring that it has been overriden by the loader. More... | |
result_t | sm_register_service (port_h *port, const char *name, uint32_t max_sessions) |
Register a service by name. More... | |
result_t | sm_unregister_service (const char *name) |
Unregister a service. More... | |
void | sm_finalize () |
Finalize Service Manager. | |
void | sm_force_finalize () |
Force Service Manager finalization. More... | |
Service Manager.
void sm_force_finalize | ( | ) |
Force Service Manager finalization.
This is a dangerous call; please make sure that sm has been initialized before calling this, and make sure that nothing else will use sm after calling this.
result_t sm_get_service | ( | ipc_object_t * | session, |
const char * | name | ||
) |
Get a service by name.
session | Acquired service |
name | The name of the service to get |
result_t sm_get_service_ex | ( | ipc_object_t * | session, |
const char * | name, | ||
bool | require_override | ||
) |
Get a service by name, optinally requiring that it has been overriden by the loader.
session | Acquired service |
name | The name of the service to get |
require_override | Whether or not to require that this service has been overriden by the loader |
Register a service by name.
port | Output for newly created port |
name | Name to register service under |
max_sessions | Maximum number of sessions allowed |
result_t sm_unregister_service | ( | const char * | name | ) |
Unregister a service.
name | Name of service to unregister |