rtp.h 736 B

12345678910111213141516171819202122
  1. #ifndef _HAIRTUNES_H_
  2. #define _HAIRTUNES_H_
  3. #include "raop_sink.h"
  4. #include "util.h"
  5. typedef struct {
  6. unsigned short cport, tport, aport;
  7. struct rtp_s *ctx;
  8. } rtp_resp_t;
  9. rtp_resp_t rtp_init(struct in_addr host, int latency,
  10. char *aeskey, char *aesiv, char *fmtpstr,
  11. short unsigned pCtrlPort, short unsigned pTimingPort,
  12. raop_cmd_cb_t cmd_cb, raop_data_cb_t data_cb);
  13. void rtp_end(struct rtp_s *ctx);
  14. bool rtp_flush(struct rtp_s *ctx, unsigned short seqno, unsigned rtptime, bool exit_locked);
  15. void rtp_flush_release(struct rtp_s *ctx);
  16. void rtp_record(struct rtp_s *ctx, unsigned short seqno, unsigned rtptime);
  17. void rtp_metadata(struct rtp_s *ctx, struct metadata_s *metadata);
  18. #endif