summaryrefslogtreecommitdiff
path: root/private_include/sections.h
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 /private_include/sections.h
First commitfirst-step
Diffstat (limited to 'private_include/sections.h')
-rw-r--r--private_include/sections.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/private_include/sections.h b/private_include/sections.h
new file mode 100644
index 0000000..67e49ce
--- /dev/null
+++ b/private_include/sections.h
@@ -0,0 +1,22 @@
+#ifndef SECTIONS_H
+#define SECTIONS_H
+
+#include <wasm_types.h>
+#include <stdio.h>
+
+int section_custom(struct wasmfs *w, FILE *f, unsigned long len);
+int section_type(struct wasmfs *w, FILE *f, unsigned long len);
+int section_import(struct wasmfs *w, FILE *f, unsigned long len);
+int section_function(struct wasmfs *w, FILE *f, unsigned long len);
+int section_table(struct wasmfs *w, FILE *f, unsigned long len);
+int section_memory(struct wasmfs *w, FILE *f, unsigned long len);
+int section_global(struct wasmfs *w, FILE *f, unsigned long len);
+int section_export(struct wasmfs *w, FILE *f, unsigned long len);
+int section_start(struct wasmfs *w, FILE *f, unsigned long len);
+int section_element(struct wasmfs *w, FILE *f, unsigned long len);
+int section_code(struct wasmfs *w, FILE *f, unsigned long len);
+int section_data(struct wasmfs *w, FILE *f, unsigned long len);
+
+int check_resizable_limits(FILE *f);
+
+#endif