GATE
Loading...
Searching...
No Matches
gate_appservice_class Struct Reference

Service class that holds callbacks for different system service execution states. More...

#include <applications.h>

Data Fields

gate_result_t(* init )(struct gate_appservice_class *service, char const *program, char const *const *arguments, gate_size_t argcount, gate_uintptr_t apphandle)
 
gate_result_t(* run )(struct gate_appservice_class *service)
 
gate_result_t(* on_signal )(struct gate_appservice_class *service, int appsignal)
 
gate_size_t(* get_servicename )(struct gate_appservice_class *service, char *buffer, gate_size_t bufferlength)
 
gate_result_t(* on_start )(struct gate_appservice_class *service)
 
gate_result_t(* on_stop )(struct gate_appservice_class *service)
 
gate_result_t(* on_pause )(struct gate_appservice_class *service)
 
gate_result_t(* on_continue )(struct gate_appservice_class *service)
 
gate_result_t(* on_error )(struct gate_appservice_class *service, gate_result_t resultcode, gate_int32_t nativecode, char const *message)
 

Detailed Description

Service class that holds callbacks for different system service execution states.

Field Documentation

◆ init

gate_result_t(* init) (struct gate_appservice_class *service, char const *program, char const *const *arguments, gate_size_t argcount, gate_uintptr_t apphandle)

Invoked on startup to hand over program arguments and to initialize global resources.

◆ run

gate_result_t(* run) (struct gate_appservice_class *service)

Invoked to execute main service functionality.

◆ on_signal

gate_result_t(* on_signal) (struct gate_appservice_class *service, int appsignal)

Invoked, when external signals are received that require application behavior changes

◆ get_servicename

gate_size_t(* get_servicename) (struct gate_appservice_class *service, char *buffer, gate_size_t bufferlength)

Invoked to return service name for registration in system

◆ on_start

gate_result_t(* on_start) (struct gate_appservice_class *service)

Invoked, when service is signaled to start its operations

◆ on_stop

gate_result_t(* on_stop) (struct gate_appservice_class *service)

Invoked, when service is signaled to stop its operations

◆ on_pause

gate_result_t(* on_pause) (struct gate_appservice_class *service)

Invoked, when service is signaled to interrupt its operations

◆ on_continue

gate_result_t(* on_continue) (struct gate_appservice_class *service)

Invoked, when service is signaled to continue its operations after an interruption

◆ on_error

gate_result_t(* on_error) (struct gate_appservice_class *service, gate_result_t resultcode, gate_int32_t nativecode, char const *message)

Invoked, when the runtime detects an internal error


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