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

app class holding callbacks for different application execution states More...

#include <applications.h>

Data Fields

gate_result_t(* init )(struct gate_app_class *app, char const *program, char const *const *arguments, gate_size_t argcount, gate_uintptr_t apphandle)
 
gate_result_t(* run )(struct gate_app_class *app)
 
gate_result_t(* on_signal )(struct gate_app_class *app, int appsignal)
 

Detailed Description

app class holding callbacks for different application execution states

Field Documentation

◆ init

gate_result_t(* init) (struct gate_app_class *app, 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_app_class *app)

Invoked to execute main application functionality.

◆ on_signal

gate_result_t(* on_signal) (struct gate_app_class *app, int appsignal)

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


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