ServiceData Struct Reference

A datatype for holding the configuration data for a Service. More...

#include <service.h>

Inheritance diagram for ServiceData:
[legend]
Collaboration diagram for ServiceData:
[legend]

Data Fields

struct Servicesd_service_p
 The service that owns this data. More...
 
json_t * sd_config_p
 If this service has an entry in global server config it will be stored here. More...
 
bool sd_config_flag
 If this is true, then this ServiceData will decrease the reference count on sd_config_p when this ServiceData is freed. More...
 

Detailed Description

A datatype for holding the configuration data for a Service.

This is normally used as a base class.

Examples
long_running_service.c.

Field Documentation

◆ sd_service_p

struct Service* sd_service_p

The service that owns this data.

◆ sd_config_p

json_t* sd_config_p

If this service has an entry in global server config it will be stored here.

The value in the service config will be "services" -> <service_name>

◆ sd_config_flag

bool sd_config_flag

If this is true, then this ServiceData will decrease the reference count on sd_config_p when this ServiceData is freed.


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