stdinout.h 645 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * SPDX-FileCopyrightText: 2019-2023 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef _NET_SUITE_STDINOUT_H
  7. #define _NET_SUITE_STDINOUT_H
  8. /**
  9. * @brief Gets one packet from stdin
  10. *
  11. * @param packet ptr to the packet buffer
  12. * @param max_len maximum size of allocated data buffer
  13. *
  14. * @return actual size of received packet (-1 in case of error)
  15. */
  16. ssize_t netsuite_io_get_packet(char *packet, size_t max_len);
  17. /**
  18. * @brief Initializes the I/O object handle to be attached to esp-netif instance
  19. *
  20. * @return I/O object pointer
  21. */
  22. void * netsuite_io_new(void);
  23. #endif //_NET_SUITE_STDINOUT_H