raop.h 607 B

1234567891011121314151617181920212223
  1. /*
  2. * AirCast: Chromecast to AirPlay
  3. *
  4. * (c) Philippe 2016-2017, philippe_44@outlook.com
  5. *
  6. * This software is released under the MIT License.
  7. * https://opensource.org/licenses/MIT
  8. *
  9. */
  10. #ifndef __RAOP_H
  11. #define __RAOP_H
  12. #include "platform.h"
  13. #include "raop_sink.h"
  14. struct raop_ctx_s* raop_create(struct in_addr host, char *name, unsigned char mac[6], int latency,
  15. raop_cmd_cb_t cmd_cb, raop_data_cb_t data_cb);
  16. void raop_delete(struct raop_ctx_s *ctx);
  17. void raop_abort(struct raop_ctx_s *ctx);
  18. bool raop_cmd(struct raop_ctx_s *ctx, raop_event_t event, void *param);
  19. #endif