diff options
Diffstat (limited to 'src/interp/binary-reader-interp.h')
-rw-r--r-- | src/interp/binary-reader-interp.h | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/src/interp/binary-reader-interp.h b/src/interp/binary-reader-interp.h index e6110f5e..0197e9aa 100644 --- a/src/interp/binary-reader-interp.h +++ b/src/interp/binary-reader-interp.h @@ -19,37 +19,21 @@ #include "src/common.h" #include "src/error.h" +#include "src/interp/interp.h" namespace wabt { -namespace interp { - -struct Export; -struct DefinedModule; -class Environment; - -} // namespace interp - struct ReadBinaryOptions; -// Read and instantiate a module in the given environment. -Result ReadBinaryInterp(interp::Environment* env, - const void* data, - size_t size, - const ReadBinaryOptions& options, - Errors*, - interp::DefinedModule** out_module); +namespace interp { -// 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, +Result ReadBinaryInterp(const void* data, size_t size, const ReadBinaryOptions& options, - const std::vector<interp::Export*>& imports, Errors*, - interp::DefinedModule** out_module); + ModuleDesc* out_module); +} // namespace interp } // namespace wabt #endif /* WABT_BINARY_READER_INTERP_H_ */ |