X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fraop_rtp.h;h=19734fcedc12c04dd74815794a39c045560bc5e6;hb=3baaba9d370042e04c70653d46e18bc289d83269;hp=25755e45bfed67505ae11c35413a2e259175d1aa;hpb=1b4a582b04fc39d9d4d930acb4d0803bdedfb32e;p=deb_shairplay.git diff --git a/src/lib/raop_rtp.h b/src/lib/raop_rtp.h index 25755e4..19734fc 100644 --- a/src/lib/raop_rtp.h +++ b/src/lib/raop_rtp.h @@ -1,3 +1,17 @@ +/** + * Copyright (C) 2011-2012 Juho Vähä-Herttua + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + */ + #ifndef RAOP_RTP_H #define RAOP_RTP_H @@ -11,11 +25,13 @@ typedef struct raop_rtp_s raop_rtp_t; -raop_rtp_t *raop_rtp_init(logger_t *logger, raop_callbacks_t *callbacks, const char *fmtp, - const unsigned char *aeskey, const unsigned char *aesiv); +raop_rtp_t *raop_rtp_init(logger_t *logger, raop_callbacks_t *callbacks, const char *remote, + const char *fmtp, const unsigned char *aeskey, const unsigned char *aesiv); void raop_rtp_start(raop_rtp_t *raop_rtp, int use_udp, unsigned short control_rport, unsigned short timing_rport, unsigned short *control_lport, unsigned short *timing_lport, unsigned short *data_lport); void raop_rtp_set_volume(raop_rtp_t *raop_rtp, float volume); +void raop_rtp_set_metadata(raop_rtp_t *raop_rtp, const char *data, int datalen); +void raop_rtp_set_coverart(raop_rtp_t *raop_rtp, const char *data, int datalen); void raop_rtp_flush(raop_rtp_t *raop_rtp, int next_seq); void raop_rtp_stop(raop_rtp_t *raop_rtp); void raop_rtp_destroy(raop_rtp_t *raop_rtp);