Přidáno: include/sysapps_runtime.h - typ funkce sysapp_init_fn_t s podpisem void init(void) - struktura sysapp_entry_t (name + entry) - extern deklarace registru g_sysapps Upraveno/Odstraněno: nic
26 lines
430 B
C
26 lines
430 B
C
/*
|
|
* AsterOS Kernel
|
|
* Autor: Pavel Kalas
|
|
* Rok: 2026
|
|
*
|
|
*/
|
|
|
|
/*
|
|
* Runtime registr pro sysapps: kazda app je mapovana na prikaz podle
|
|
* nazvu souboru a spousti se pres init(void).
|
|
*/
|
|
|
|
#ifndef ASTER_SYSAPPS_RUNTIME_H
|
|
#define ASTER_SYSAPPS_RUNTIME_H
|
|
|
|
typedef void (*sysapp_init_fn_t)(void);
|
|
|
|
typedef struct {
|
|
const char *name;
|
|
sysapp_init_fn_t entry;
|
|
} sysapp_entry_t;
|
|
|
|
extern const sysapp_entry_t g_sysapps[];
|
|
|
|
#endif
|