Fixed RemoteApp communication which broke for Remote 3.0 due to some new properties in the query

This commit is contained in:
Thijs Reus 2012-12-02 10:25:48 +01:00 committed by ejurgensen
parent 67c092828d
commit 6b0fde9dba
5 changed files with 60 additions and 0 deletions

2
.gitignore vendored
View File

@ -26,6 +26,8 @@ libtool
ltmain.sh
missing
stamp-h1
autotools-stamp
build-stamp
# ignore debian packaging for convenience
debian/

View File

@ -133,6 +133,7 @@ expr returns [ pANTLR3_STRING result, int valid ]
val = field;
while ((*val != '\0') && ((*val == '.')
|| (*val == '-')
|| ((*val >= 'a') && (*val <= 'z'))
|| ((*val >= 'A') && (*val <= 'Z'))
|| ((*val >= '0') && (*val <= '9'))))

View File

@ -37,3 +37,4 @@ struct dmap_query_field_map;
"daap.songtracknumber", "f.track", 1
"daap.songyear", "f.year", 1
"com.apple.itunes.mediakind", "f.media_kind", 1
"com.apple.itunes.extended-media-kind", "f.media_kind", 1

View File

@ -20,3 +20,9 @@ struct dacp_prop_map;
"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

View File

@ -103,6 +103,19 @@ dacp_propget_nowplaying(struct evbuffer *evbuf, struct player_status *status, st
static void
dacp_propget_playingtime(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi);
static void
dacp_propget_fullscreenenabled(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi);
static void
dacp_propget_fullscreen(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi);
static void
dacp_propget_visualizerenabled(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi);
static void
dacp_propget_visualizer(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi);
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);
/* Forward - properties setters */
static void
dacp_propset_volume(const char *value, struct evkeyvalq *query);
@ -432,6 +445,43 @@ dacp_propget_playingtime(struct evbuffer *evbuf, struct player_status *status, s
dacp_playingtime(evbuf, status, mfi);
}
static void
dacp_propget_fullscreenenabled(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi)
{
// TODO
}
static void
dacp_propget_fullscreen(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi)
{
// TODO
}
static void
dacp_propget_visualizerenabled(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi)
{
// TODO
}
static void
dacp_propget_visualizer(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi)
{
// TODO
}
static void
dacp_propget_itms_songid(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi)
{
// TODO
}
static void
dacp_propget_haschapterdata(struct evbuffer *evbuf, struct player_status *status, struct media_file_info *mfi)
{
// TODO
}
/* Properties setters */
static void
dacp_propset_volume(const char *value, struct evkeyvalq *query)