You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
733B

  1. #ifndef _rtsp_server_aio_h_
  2. #define _rtsp_server_aio_h_
  3. #include "rtsp-server.h"
  4. #if defined(__cplusplus)
  5. extern "C" {
  6. #endif
  7. typedef void* aio_rtsp_connection_t;
  8. struct aio_rtsp_handler_t
  9. {
  10. struct rtsp_handler_t base;
  11. void (*onerror)(void* param, rtsp_server_t* rtsp, int code);
  12. void (*onrtp)(void* param, uint8_t channel, const void* data, uint16_t bytes);
  13. };
  14. void* rtsp_server_listen(const char* ip, int port, struct aio_rtsp_handler_t* handler, void* param);
  15. int rtsp_server_unlisten(void* aio);
  16. void* rtsp_transport_udp_create(const char* ip, int port, struct rtsp_handler_t* handler, void* param);
  17. void rtsp_transport_udp_destroy(void* transport);
  18. #if defined(__cplusplus)
  19. }
  20. #endif
  21. #endif /* !_rtsp_server_aio_h_ */