diff options
author | Sam Clegg <sbc@chromium.org> | 2020-01-16 14:53:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-16 14:53:11 -0800 |
commit | 7c80d05e37dc02870c680869ae3f04ac6d9637ee (patch) | |
tree | 57645c67379d4e6ec49773b3494dc752ffcb5e68 /src/interp/binary-reader-interp.h | |
parent | d663c80dcb627fed3e21cfa2b47465452a83a894 (diff) | |
download | wabt-7c80d05e37dc02870c680869ae3f04ac6d9637ee.tar.gz wabt-7c80d05e37dc02870c680869ae3f04ac6d9637ee.tar.bz2 wabt-7c80d05e37dc02870c680869ae3f04ac6d9637ee.zip |
Initial WASM C API implementation. (#1250)
All tests except `threads` pass.
Diffstat (limited to 'src/interp/binary-reader-interp.h')
-rw-r--r-- | src/interp/binary-reader-interp.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/interp/binary-reader-interp.h b/src/interp/binary-reader-interp.h index 767b9479..e6110f5e 100644 --- a/src/interp/binary-reader-interp.h +++ b/src/interp/binary-reader-interp.h @@ -24,6 +24,7 @@ namespace wabt { namespace interp { +struct Export; struct DefinedModule; class Environment; @@ -31,6 +32,7 @@ class Environment; struct ReadBinaryOptions; +// Read and instantiate a module in the given environment. Result ReadBinaryInterp(interp::Environment* env, const void* data, size_t size, @@ -38,6 +40,16 @@ Result ReadBinaryInterp(interp::Environment* env, Errors*, interp::DefinedModule** out_module); +// Read and instantiate a module in the given environment. Similar to above but +// using using a fixed set of exports to resolve the module exports. +Result ReadBinaryInterp(interp::Environment* env, + const void* data, + size_t size, + const ReadBinaryOptions& options, + const std::vector<interp::Export*>& imports, + Errors*, + interp::DefinedModule** out_module); + } // namespace wabt #endif /* WABT_BINARY_READER_INTERP_H_ */ |