feat(action): 重构 action 接口为函数指针表并实现 quit 和 raise_or_run

This commit is contained in:
2026-05-05 00:44:04 +08:00
parent d6512c531f
commit 70e2477649
9 changed files with 178 additions and 24 deletions

View File

@@ -1,3 +1,11 @@
#pragma once
#include "core/runtime.h"
void spawn(const char *command);
void quit(runtime_t *runtime, bool restart);
void raise_or_run(
zdwm_runtime_t *runtime,
const char *class_name,
const char *command
);