add plist sent to client to DEBUG output; update version in global.h

This commit is contained in:
fduncanh
2021-12-07 15:04:00 -05:00
parent ed2411d90f
commit 444495ced7
2 changed files with 7 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
#define GLOBAL_FEATURES 0x7
#define GLOBAL_MODEL "AppleTV2,1"
#define GLOBAL_VERSION "130.14"
#define GLOBAL_VERSION "220.68"
#define MAX_HWADDR_LEN 6

View File

@@ -161,8 +161,13 @@ raop_handler_info(raop_conn_t *conn,
plist_dict_set_item(r_node, "displays", displays_node);
plist_to_bin(r_node, response_data, (uint32_t *) response_datalen);
logger_log(conn->raop->logger, LOGGER_DEBUG, "INFO len = %d", *response_datalen);
http_response_add_header(response, "Content-Type", "application/x-apple-binary-plist");
logger_log(conn->raop->logger, LOGGER_DEBUG, "UxPlay server info sent in response to client \"GET /info\" request, len = %d:", *response_datalen);
char * plist_xml;
uint32_t plist_len;
plist_to_xml(r_node, &plist_xml, &plist_len);
logger_log(conn->raop->logger, LOGGER_DEBUG, "%s", plist_xml);
free(plist_xml);
free(pk);
free(hw_addr);
}