raop.h 531 B

12345678910111213141516171819
  1. /*
  2. * (c) Philippe 2020, philippe_44@outlook.com
  3. *
  4. * This software is released under the MIT License.
  5. * https://opensource.org/licenses/MIT
  6. *
  7. */
  8. #pragma once
  9. #include "platform.h"
  10. #include "raop_sink.h"
  11. struct raop_ctx_s* raop_create(uint32_t host, char *name, unsigned char mac[6], int latency,
  12. raop_cmd_cb_t cmd_cb, raop_data_cb_t data_cb);
  13. void raop_delete(struct raop_ctx_s *ctx);
  14. void raop_abort(struct raop_ctx_s *ctx);
  15. bool raop_cmd(struct raop_ctx_s *ctx, raop_event_t event, void *param);