libctru  v1.6.0
Functions
srvpm.h File Reference

srv:pm service. More...

Go to the source code of this file.

Functions

Result srvPmInit (void)
 Initializes srv:pm and the service API.
 
void srvPmExit (void)
 Exits srv:pm and the service API.
 
HandlesrvPmGetSessionHandle (void)
 Gets the current srv:pm session handle. More...
 
Result SRVPM_PublishToProcess (u32 notificationId, Handle process)
 Publishes a notification to a process. More...
 
Result SRVPM_PublishToAll (u32 notificationId)
 Publishes a notification to all processes. More...
 
Result SRVPM_RegisterProcess (u32 pid, u32 count, const char(*serviceAccessControlList)[8])
 Registers a process with SRV. More...
 
Result SRVPM_UnregisterProcess (u32 pid)
 Unregisters a process with SRV. More...
 

Detailed Description

srv:pm service.

Function Documentation

◆ SRVPM_PublishToAll()

Result SRVPM_PublishToAll ( u32  notificationId)

Publishes a notification to all processes.

Parameters
notificationIdID of the notification.

◆ SRVPM_PublishToProcess()

Result SRVPM_PublishToProcess ( u32  notificationId,
Handle  process 
)

Publishes a notification to a process.

Parameters
notificationIdID of the notification.
processProcess to publish to.

◆ SRVPM_RegisterProcess()

Result SRVPM_RegisterProcess ( u32  pid,
u32  count,
const char(*)  serviceAccessControlList[8] 
)

Registers a process with SRV.

Parameters
pidID of the process.
countNumber of services within the service access control data.
serviceAccessControlListService Access Control list.

◆ SRVPM_UnregisterProcess()

Result SRVPM_UnregisterProcess ( u32  pid)

Unregisters a process with SRV.

Parameters
pidID of the process.

◆ srvPmGetSessionHandle()

Handle* srvPmGetSessionHandle ( void  )

Gets the current srv:pm session handle.

Returns
The current srv:pm session handle.