raop.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * AirCast: Chromecast to AirPlay
  3. *
  4. * (c) Philippe 2016-2017, philippe_44@outlook.com
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. #ifndef __RAOP_H
  21. #define __RAOP_H
  22. #include "platform.h"
  23. #include "raop_sink.h"
  24. struct raop_ctx_s* raop_create(struct in_addr host, char *name, unsigned char mac[6], int latency,
  25. raop_cmd_cb_t cmd_cb, raop_data_cb_t data_cb);
  26. void raop_delete(struct raop_ctx_s *ctx);
  27. void raop_cmd(struct raop_ctx_s *ctx, raop_event_t event, void *param);
  28. #endif