req_resp_api.h 505 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 _REQ_RESP_API_H_
  6. #define _REQ_RESP_API_H_
  7. #include "bh_platform.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. wasm_response_send(const char *buf, int size);
  13. void
  14. wasm_register_resource(const char *url);
  15. void
  16. wasm_post_request(const char *buf, int size);
  17. void
  18. wasm_sub_event(const char *url);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif /* end of _REQ_RESP_API_H_ */