[libdmapsharing] dacplisten.vala: follow API change
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] dacplisten.vala: follow API change
- Date: Tue, 20 Mar 2018 22:20:36 +0000 (UTC)
commit a89bc9eb7733c0624cdb59f3904a5736b312fb53
Author: W. Michael Petullo <mike flyn org>
Date: Tue Mar 20 00:38:59 2018 -0400
dacplisten.vala: follow API change
Signed-off-by: W. Michael Petullo <mike flyn org>
tests/dacplisten.c | 19 ++++++-------------
tests/dacplisten.vala | 2 +-
tests/vala-dmap-container-db.c | 2 +-
3 files changed, 8 insertions(+), 15 deletions(-)
---
diff --git a/tests/dacplisten.c b/tests/dacplisten.c
index 7cf6d5a..72dbfe6 100644
--- a/tests/dacplisten.c
+++ b/tests/dacplisten.c
@@ -1,4 +1,4 @@
-/* dacplisten.c generated by valac 0.38.7, the Vala compiler
+/* dacplisten.c generated by valac 0.38.8, the Vala compiler
* generated from dacplisten.vala, do not modify */
/* FILE: dacplisten.vala -- Listen to DACP remotes
@@ -117,7 +117,7 @@ static gpointer dacp_listener_parent_class = NULL;
GType vala_dacp_player_get_type (void) G_GNUC_CONST;
static DmapAvRecord* vala_dacp_player_real_now_playing_record (DmapControlPlayer* base);
-static guchar* vala_dacp_player_real_now_playing_artwork (DmapControlPlayer* base, guint width, guint
height, int* result_length1);
+static const gchar* vala_dacp_player_real_now_playing_artwork (DmapControlPlayer* base, guint width, guint
height);
static void vala_dacp_player_real_play_pause (DmapControlPlayer* base);
static void vala_dacp_player_real_pause (DmapControlPlayer* base);
static void vala_dacp_player_real_next_item (DmapControlPlayer* base);
@@ -156,21 +156,14 @@ static DmapAvRecord* vala_dacp_player_real_now_playing_record (DmapControlPlayer
}
-static guchar* vala_dacp_player_real_now_playing_artwork (DmapControlPlayer* base, guint width, guint
height, int* result_length1) {
+static const gchar* vala_dacp_player_real_now_playing_artwork (DmapControlPlayer* base, guint width, guint
height) {
ValaDacpPlayer * self;
- guchar* result = NULL;
+ const gchar* result = NULL;
FILE* _tmp0_;
- guchar* _tmp1_;
- gint _tmp1__length1;
self = (ValaDacpPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Now playing artwork request received\n");
- _tmp1_ = NULL;
- _tmp1__length1 = 0;
- if (result_length1) {
- *result_length1 = _tmp1__length1;
- }
- result = _tmp1_;
+ result = NULL;
return result;
}
@@ -249,7 +242,7 @@ static void vala_dacp_player_class_init (ValaDacpPlayerClass * klass) {
static void vala_dacp_player_dmap_control_player_interface_init (DmapControlPlayerInterface * iface) {
vala_dacp_player_dmap_control_player_parent_iface = g_type_interface_peek_parent (iface);
iface->now_playing_record = (DmapAvRecord* (*) (DmapControlPlayer *))
vala_dacp_player_real_now_playing_record;
- iface->now_playing_artwork = (guchar* (*) (DmapControlPlayer *, guint, guint, int*))
vala_dacp_player_real_now_playing_artwork;
+ iface->now_playing_artwork = (const gchar* (*) (DmapControlPlayer *, guint, guint))
vala_dacp_player_real_now_playing_artwork;
iface->play_pause = (void (*) (DmapControlPlayer *)) vala_dacp_player_real_play_pause;
iface->pause = (void (*) (DmapControlPlayer *)) vala_dacp_player_real_pause;
iface->next_item = (void (*) (DmapControlPlayer *)) vala_dacp_player_real_next_item;
diff --git a/tests/dacplisten.vala b/tests/dacplisten.vala
index 3007ae9..1475819 100644
--- a/tests/dacplisten.vala
+++ b/tests/dacplisten.vala
@@ -27,7 +27,7 @@ private class ValaDacpPlayer : GLib.Object, Dmap.ControlPlayer {
return null;
}
- unowned uchar[] now_playing_artwork (uint width, uint height) {
+ unowned string now_playing_artwork (uint width, uint height) {
stdout.printf ("Now playing artwork request received\n");
return null;
}
diff --git a/tests/vala-dmap-container-db.c b/tests/vala-dmap-container-db.c
index 4edd675..fe2dd3f 100644
--- a/tests/vala-dmap-container-db.c
+++ b/tests/vala-dmap-container-db.c
@@ -1,4 +1,4 @@
-/* vala-dmap-container-db.c generated by valac 0.38.7, the Vala compiler
+/* vala-dmap-container-db.c generated by valac 0.38.8, the Vala compiler
* generated from vala-dmap-container-db.vala, do not modify */
/* FILE: vala-dmap-db.vala -- A DmapContainerDb implementation in Vala
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]