summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-11-26 22:43:30 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-12-29 23:36:21 +0100
commit52c18e60929b64285d4bb333f87482d954c9b2e0 (patch)
tree836ab3a01d160f45cda4f5a28522fc0bf471011c /include
downloadnanowasm-first-step.tar.gz
First commitfirst-step
Diffstat (limited to 'include')
-rw-r--r--include/wasmfs.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/wasmfs.h b/include/wasmfs.h
new file mode 100644
index 0000000..5ccd067
--- /dev/null
+++ b/include/wasmfs.h
@@ -0,0 +1,18 @@
+#ifndef WASMFS_H
+#define WASMFS_H
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct wasmfs *wasmfs_load(const char *path);
+void wasmfs_unload(struct wasmfs *w);
+struct wasmfs_inst *wasmfs_start(const struct wasmfs *w);
+int wasmfs_run(struct wasmfs_inst *i);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif