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:
2026-07-13 20:59:22 +02:00
parent 1235929f17
commit fd44a945fb
+25
View File
@@ -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