From 0d5fef60e67d5c3b174a1c3249800638bcfeb8a2 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Thu, 7 Nov 2013 22:45:12 +0100 Subject: [PATCH] Add empty DACP property get for media-kind and extended-media-kind --- src/dacp_prop.gperf | 34 ++++++++++++++++++---------------- src/httpd_dacp.c | 15 +++++++++++++++ 2 files changed, 33 insertions(+), 16 deletions(-) diff --git a/src/dacp_prop.gperf b/src/dacp_prop.gperf index 72049c49..44f28d3d 100644 --- a/src/dacp_prop.gperf +++ b/src/dacp_prop.gperf @@ -10,19 +10,21 @@ %omit-struct-type struct dacp_prop_map; %% -"dmcp.volume", dacp_propget_volume, dacp_propset_volume -"dacp.playerstate", dacp_propget_playerstate, NULL -"dacp.nowplaying", dacp_propget_nowplaying, NULL -"dacp.playingtime", dacp_propget_playingtime, dacp_propset_playingtime -"dacp.volumecontrollable", dacp_propget_volumecontrollable, NULL -"dacp.availableshufflestates", dacp_propget_availableshufflestates, NULL -"dacp.availablerepeatstates", dacp_propget_availablerepeatstates, NULL -"dacp.shufflestate", dacp_propget_shufflestate, dacp_propset_shufflestate -"dacp.repeatstate", dacp_propget_repeatstate, dacp_propset_repeatstate -"dacp.userrating", NULL, dacp_propset_userrating -"dacp.fullscreenenabled", dacp_propget_fullscreenenabled, NULL -"dacp.fullscreen", dacp_propget_fullscreen, NULL -"dacp.visualizerenabled", dacp_propget_visualizerenabled, NULL -"dacp.visualizer", dacp_propget_visualizer, NULL -"com.apple.itunes.itms-songid", dacp_propget_itms_songid, NULL -"com.apple.itunes.has-chapter-data", dacp_propget_haschapterdata, NULL +"dmcp.volume", dacp_propget_volume, dacp_propset_volume +"dacp.playerstate", dacp_propget_playerstate, NULL +"dacp.nowplaying", dacp_propget_nowplaying, NULL +"dacp.playingtime", dacp_propget_playingtime, dacp_propset_playingtime +"dacp.volumecontrollable", dacp_propget_volumecontrollable, NULL +"dacp.availableshufflestates", dacp_propget_availableshufflestates, NULL +"dacp.availablerepeatstates", dacp_propget_availablerepeatstates, NULL +"dacp.shufflestate", dacp_propget_shufflestate, dacp_propset_shufflestate +"dacp.repeatstate", dacp_propget_repeatstate, dacp_propset_repeatstate +"dacp.userrating", NULL, dacp_propset_userrating +"dacp.fullscreenenabled", dacp_propget_fullscreenenabled, NULL +"dacp.fullscreen", dacp_propget_fullscreen, NULL +"dacp.visualizerenabled", dacp_propget_visualizerenabled, NULL +"dacp.visualizer", dacp_propget_visualizer, NULL +"com.apple.itunes.itms-songid", dacp_propget_itms_songid, NULL +"com.apple.itunes.has-chapter-data", dacp_propget_haschapterdata, NULL +"com.apple.itunes.mediakind", dacp_propget_mediakind, NULL +"com.apple.itunes.extended-media-kind", dacp_propget_extendedmediakind, NULL diff --git a/src/httpd_dacp.c b/src/httpd_dacp.c index 97e17a76..e62a3178 100644 --- a/src/httpd_dacp.c +++ b/src/httpd_dacp.c @@ -115,6 +115,10 @@ static void dacp_propget_itms_songid(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi); static void dacp_propget_haschapterdata(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi); +static void +dacp_propget_mediakind(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi); +static void +dacp_propget_extendedmediakind(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi); /* Forward - properties setters */ static void @@ -481,6 +485,17 @@ dacp_propget_haschapterdata(struct evbuffer *evbuf, struct player_status *status // TODO } +static void +dacp_propget_mediakind(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi) +{ + // TODO +} + +static void +dacp_propget_extendedmediakind(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi) +{ + // TODO +} /* Properties setters */ static void