wasm_memory.h 504 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _WASM_MEMORY_H
  6. #define _WASM_MEMORY_H
  7. #include "bh_common.h"
  8. #include "../include/wasm_export.h"
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. bool
  13. wasm_runtime_memory_init(mem_alloc_type_t mem_alloc_type,
  14. const MemAllocOption *alloc_option);
  15. void
  16. wasm_runtime_memory_destroy();
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif /* end of _WASM_MEMORY_H */