Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed RemoteApp communication which broke for Remote 3.0 due to some …

…new properties in the query
  • Loading branch information...
commit 75f30fd26d194d29d3cf26611f82f4a7319895ec 1 parent 2799b48
@treus treus authored
View
2  .gitignore
@@ -26,6 +26,8 @@ libtool
ltmain.sh
missing
stamp-h1
+autotools-stamp
+build-stamp
# ignore debian packaging for convenience
debian/
View
1  src/DAAP2SQL.g
@@ -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
1  src/daap_query.gperf
@@ -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
6 src/dacp_prop.gperf
@@ -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
50 src/httpd_dacp.c
@@ -99,6 +99,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 keyval *query);
@@ -433,6 +446,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 keyval *query)
Please sign in to comment.
Something went wrong with that request. Please try again.