host_link.h 803 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 DEPS_APP_MGR_APP_MGR_SHARED_HOST_LINK_H_
  6. #define DEPS_APP_MGR_APP_MGR_SHARED_HOST_LINK_H_
  7. typedef enum LINK_MSG_TYPE {
  8. COAP_TCP_RAW = 0,
  9. COAP_UDP_RAW = 1,
  10. REQUEST_PACKET,
  11. RESPONSE_PACKET,
  12. INSTALL_WASM_APP,
  13. CBOR_GENERIC = 30,
  14. LINK_MSG_TYPE_MAX = 50
  15. } LINK_MSG_TYPE;
  16. /* Link message, or message between host and app manager */
  17. typedef struct bh_link_msg_t {
  18. /* 2 bytes leading */
  19. uint16_t leading_bytes;
  20. /* message type, must be COAP_TCP or COAP_UDP */
  21. uint16_t message_type;
  22. /* size of payload */
  23. uint32_t payload_size;
  24. char *payload;
  25. } bh_link_msg_t;
  26. #endif /* DEPS_APP_MGR_APP_MGR_SHARED_HOST_LINK_H_ */