mpris2-client: adapted to API changes.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 6 Jun 2013 13:41:27 +0000 (16:41 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 6 Jun 2013 13:55:38 +0000 (16:55 +0300)
src/plugins/mpris2-client/clients.c

index ad94440..bc7a227 100644 (file)
@@ -23,7 +23,8 @@ struct clients_s {
 };
 
 static int notify_focus(srs_client_t *, srs_voice_focus_t);
-static int notify_command(srs_client_t *, int, char **);
+static int notify_command(srs_client_t *, int, int, char **, void *, size_t,
+                          uint32_t *, uint32_t *);
 
 static void schedule_delayed_request(player_t *);
 
@@ -365,7 +366,10 @@ static int notify_focus(srs_client_t *srs_client, srs_voice_focus_t focus)
     return TRUE;
 }
 
-static int notify_command(srs_client_t *srs_client, int ntoken, char **tokens)
+static int notify_command(srs_client_t *srs_client, int idx,
+                          int ntoken, char **tokens,
+                          void *samplebuf, size_t samplelen,
+                          uint32_t *start, uint32_t *end)
 {
     context_t *ctx;
     clients_t *clients;
@@ -374,6 +378,12 @@ static int notify_command(srs_client_t *srs_client, int ntoken, char **tokens)
     char *e, *p, *sep;
     int i;
 
+    MRP_UNUSED(idx);
+    MRP_UNUSED(samplebuf);
+    MRP_UNUSED(samplelen);
+    MRP_UNUSED(start);
+    MRP_UNUSED(end);
+
     if (!srs_client || !(ctx = srs_client->user_data) ||
         !(clients = ctx->clients))
         return FALSE;