moon-plasma / moonplasma / MoonPlasma / Moon Plasma become chandra / Chandra everywhere: the WIT package (chandra:desktop, chandra:host, chandra:wm), the MoonBit module (chandra/desktop) and generated bindings, the Rust host, identifiers (ChandraCompositor), the session script (chandra-session) and desktop entry (chandra.desktop), config and data paths ($XDG_CONFIG_HOME/chandra, share/chandra/modules), env vars (CHANDRA_*), UI strings, docs and tests. The test fixture components are rebuilt against the renamed WIT. Saved panel.edn and state.edn are still read from the old $XDG_CONFIG_HOME/moon-plasma until the first save writes the new copy. The remote repository keeps its experiments/moon-plasma name for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hi3L9oVBoRd373Qr4n
This commit is contained in:
323 files changed
+1055
-1013
No files matched your search
+10
-10
@@ -1,4 +1,4 @@
|
||||
/* Wasm plasmoid host: runs the core module of a moonplasma plasmoid component
|
||||
/* Wasm plasmoid host: runs the core module of a chandra plasmoid component
|
||||
* (or a bare core module) with wasmer's C API. Canonical-ABI marshalling stays in
|
||||
* MoonBit; this file instantiates, provides the host imports (theme, clock) and
|
||||
* exposes raw calls plus guest-memory reads. */
|
||||
@@ -18,13 +18,13 @@
|
||||
#define MAX_INST 512
|
||||
enum { EX_INFO, EX_RENDER, EX_ONEVENT, EX_POPUP, EX_POST_INFO, EX_POST_RENDER, EX_POST_POPUP, EX_REALLOC, EX_N };
|
||||
static const char *ex_names[EX_N] = {
|
||||
"moonplasma:desktop/plasmoid@0.1.0#info",
|
||||
"moonplasma:desktop/plasmoid@0.1.0#render",
|
||||
"moonplasma:desktop/plasmoid@0.1.0#on-event",
|
||||
"moonplasma:desktop/plasmoid@0.1.0#popup",
|
||||
"cabi_post_moonplasma:desktop/plasmoid@0.1.0#info",
|
||||
"cabi_post_moonplasma:desktop/plasmoid@0.1.0#render",
|
||||
"cabi_post_moonplasma:desktop/plasmoid@0.1.0#popup",
|
||||
"chandra:desktop/plasmoid@0.1.0#info",
|
||||
"chandra:desktop/plasmoid@0.1.0#render",
|
||||
"chandra:desktop/plasmoid@0.1.0#on-event",
|
||||
"chandra:desktop/plasmoid@0.1.0#popup",
|
||||
"cabi_post_chandra:desktop/plasmoid@0.1.0#info",
|
||||
"cabi_post_chandra:desktop/plasmoid@0.1.0#render",
|
||||
"cabi_post_chandra:desktop/plasmoid@0.1.0#popup",
|
||||
"cabi_realloc",
|
||||
};
|
||||
|
||||
@@ -381,9 +381,9 @@ static int load_bytes(Inst *in, const uint8_t *d, size_t n) {
|
||||
}
|
||||
|
||||
|
||||
/* "moonplasma:desktop/<iface>@<ver>" -> <iface> (copied, NUL-terminated); "" for anything else. */
|
||||
/* "chandra:desktop/<iface>@<ver>" -> <iface> (copied, NUL-terminated); "" for anything else. */
|
||||
static void iface_of(const wasm_name_t *m, char *out, size_t cap) {
|
||||
const char *pre = "moonplasma:desktop/";
|
||||
const char *pre = "chandra:desktop/";
|
||||
size_t pl = strlen(pre);
|
||||
out[0] = 0;
|
||||
if (m->size <= pl || memcmp(m->data, pre, pl) != 0) return;
|
||||
|
||||
Reference in new issue
Block a user