summaryrefslogtreecommitdiff
path: root/src/interp/binary-reader-interp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/interp/binary-reader-interp.h')
-rw-r--r--src/interp/binary-reader-interp.h12
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_ */