connection_api.h 611 B

12345678910111213141516171819202122232425262728293031
  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(const char *name, char *args_buf, uint32 args_buf_len);
  13. void
  14. wasm_close_connection(uint32 handle);
  15. int
  16. wasm_send_on_connection(uint32 handle, const char *data, uint32 data_len);
  17. bool
  18. wasm_config_connection(uint32 handle, const char *cfg_buf, uint32 cfg_buf_len);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif /* end of CONNECTION_API_H_ */