summaryrefslogtreecommitdiff
path: root/dacp.h
diff options
context:
space:
mode:
authorMike Brady <mikebrady@eircom.net>2018-02-18 16:29:09 +0000
committerMike Brady <mikebrady@eircom.net>2018-02-18 16:29:09 +0000
commit3a4e29c5c67fb12f9264ed29de951defbb8fc6d2 (patch)
tree923094d93d9e674e034fd348e15dd30ef8f5145d /dacp.h
parent3ca4d2cdc45d34930dab8a1331fcaf2cf69c7002 (diff)
Tidy up dacp scanner -- stop scanning when audio source goes offline.
Diffstat (limited to 'dacp.h')
-rw-r--r--dacp.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/dacp.h b/dacp.h
index bcd5e75..7c23a8b 100644
--- a/dacp.h
+++ b/dacp.h
@@ -6,9 +6,6 @@
#include "player.h"
-static pthread_mutex_t dacp_server_information_lock;
-static pthread_cond_t dacp_server_information_cv;
-
typedef struct dacp_speaker_stuff {
int64_t speaker_number;
int active;
@@ -24,11 +21,11 @@ uint32_t dacp_tlv_crawl(
int dacp_set_speaker_volume(int64_t machine_number, int32_t vo);
-int dacp_get_speaker_list(dacp_spkr_stuff *speaker_array, int max_size_of_array);
+int dacp_get_speaker_list(dacp_spkr_stuff *speaker_array, int max_size_of_array, int *actual_speaker_count);
void set_dacp_server_information(rtsp_conn_info *conn); // tell the DACP conversation thread that
// the dacp server information has been set
// or changed
int send_simple_dacp_command(const char *command);
-void dacp_get_volume(void); // get the speaker volume information from the DACP source and store it
+int dacp_get_volume(int32_t *the_actual_volume); // get the speaker volume information from the DACP source and store it
// in the metadata_hub