From fd44a945fb555bdd696cf1ecbb0226126d240e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Kala=C5=A1=20=28Floxen=29?= Date: Mon, 13 Jul 2026 20:59:22 +0200 Subject: [PATCH] =?UTF-8?q?headers:=20p=C5=99idan=C3=BD=20runtime=20kontra?= =?UTF-8?q?kt=20pro=20sysapps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/sysapps_runtime.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/sysapps_runtime.h diff --git a/include/sysapps_runtime.h b/include/sysapps_runtime.h new file mode 100644 index 0000000..5efa59e --- /dev/null +++ b/include/sysapps_runtime.h @@ -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