headers: přidaný runtime kontrakt pro sysapps
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
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* 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
|
||||
Reference in New Issue
Block a user