]>
git.ipfire.org Git - thirdparty/shairport-sync.git/blob - dacp.h
5 #include <sys/socket.h>
9 typedef struct dacp_speaker_stuff
{
10 int64_t speaker_number
;
13 char name
[128]; // this is really just for debugging
16 void dacp_monitor_start();
17 void dacp_monitor_stop();
19 uint32_t dacp_tlv_crawl(
21 int32_t *length
); // return the code of the next TLV entity and advance the pointer beyond it.
23 int dacp_set_speaker_volume(int64_t machine_number
, int32_t vo
);
25 int dacp_get_speaker_list(dacp_spkr_stuff
*speaker_array
, int max_size_of_array
,
26 int *actual_speaker_count
);
27 void set_dacp_server_information(rtsp_conn_info
*conn
); // tell the DACP conversation thread that
28 // the dacp server information has been set
30 void relinquish_dacp_server_information(rtsp_conn_info
*conn
); // tell the DACP conversation thread
31 // that the player thread is no
32 // longer associated with it.
33 void dacp_monitor_port_update_callback(
34 char *dacp_id
, uint16_t port
); // a callback to say the port is no longer in use
36 int dacp_send_command(const char *command
, char **body
, ssize_t
*bodysize
);
37 int send_simple_dacp_command(const char *command
);
39 int dacp_set_include_speaker_volume(int64_t machine_number
, int32_t vo
);
40 int dacp_get_client_volume(int32_t *result
);
42 int32_t *the_actual_volume
); // get the speaker volume information from the DACP source
43 int dacp_set_volume(int32_t vo
); // set the volume of our speaker