GATE
|
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) |
Service class that holds callbacks for different system service execution states.
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.
gate_result_t(* run) (struct gate_appservice_class *service) |
Invoked to execute main service functionality.
gate_result_t(* on_signal) (struct gate_appservice_class *service, int appsignal) |
Invoked, when external signals are received that require application behavior changes
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
gate_result_t(* on_start) (struct gate_appservice_class *service) |
Invoked, when service is signaled to start its operations
gate_result_t(* on_stop) (struct gate_appservice_class *service) |
Invoked, when service is signaled to stop its operations
gate_result_t(* on_pause) (struct gate_appservice_class *service) |
Invoked, when service is signaled to interrupt its operations
gate_result_t(* on_continue) (struct gate_appservice_class *service) |
Invoked, when service is signaled to continue its operations after an interruption
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