rtp.h 672 B

123456789101112131415161718192021
  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);
  15. void rtp_record(struct rtp_s *ctx, unsigned short seqno, unsigned rtptime);
  16. void rtp_metadata(struct rtp_s *ctx, struct metadata_s *metadata);
  17. #endif