From 52c18e60929b64285d4bb333f87482d954c9b2e0 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 26 Nov 2023 22:43:30 +0100 Subject: First commit --- private_include/sections.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 private_include/sections.h (limited to 'private_include/sections.h') 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 +#include + +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 -- cgit v1.2.3