connection_api.h 622 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef CONNECTION_API_H_
  6. #define CONNECTION_API_H_
  7. #include "bh_platform.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. uint32
  12. wasm_open_connection(int32 name_offset, int32 args_buf_offset, uint32 args_buf_len);
  13. void
  14. wasm_close_connection(uint32 handle);
  15. int
  16. wasm_send_on_connection(uint32 handle, int32 data_offset, uint32 data_len);
  17. bool
  18. wasm_config_connection(uint32 handle, int32 cfg_buf_offset, uint32 cfg_buf_len);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif /* end of CONNECTION_API_H_ */