summaryrefslogtreecommitdiff
path: root/private_include/sections.h
blob: 67e49ce5f91ab808b7efc0c0a2f0a2b76439a3ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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