poser
A C framework for POsix SERvices
Loading...
Searching...
No Matches
PSC_EAStartup Class Reference

Event arguments for service (pre)startup events. More...

#include <poser/core/service.h>

Public Member Functions

void PSC_EAStartup_return (PSC_EAStartup *self, int rc)
 Return a status code from a (pre)startup event.
 

Detailed Description

Event arguments for service (pre)startup events.

Member Function Documentation

◆ PSC_EAStartup_return()

void PSC_EAStartup_return ( PSC_EAStartup self,
int  rc 
)

Return a status code from a (pre)startup event.

Call this to signal an error condition from the PSC_Service_prestartup() or the PSC_Service_startup() event. A non-zero exit code will cause the service loop to exit directly, returning this code.

Parameters
selfthe PSC_EAStartup
rcthe exit code to return

The documentation for this class was generated from the following file: