extend API to allow choices for udp ports, tcp ports, display size

to writen into raop_t raop for later use when connections are made.
new functions : raop_set_udp_ports, raop_set_tcp_ports, raop_set_display_size
The behavior of the library is unchanged if these functions are not used.
This commit is contained in:
fduncanh
2021-07-31 23:24:50 -04:00
parent 623b638357
commit 57e9287df1
7 changed files with 69 additions and 12 deletions

View File

@@ -27,7 +27,8 @@
typedef struct raop_rtp_s raop_rtp_t;
raop_rtp_t *raop_rtp_init(logger_t *logger, raop_callbacks_t *callbacks, raop_ntp_t *ntp, const unsigned char *remote, int remotelen,
const unsigned char *aeskey, const unsigned char *aesiv, const unsigned char *ecdh_secret);
const unsigned char *aeskey, const unsigned char *aesiv, const unsigned char *ecdh_secret,
unsigned short control_lport , unsigned short data_lport);
void raop_rtp_start_audio(raop_rtp_t *raop_rtp, int use_udp, unsigned short control_rport,
unsigned short *control_lport, unsigned short *data_lport);