[libdmapsharing] Move version to 3.9/4.0



commit c75d89e769ecca957e3ec019c022e8c14ee30932
Author: W. Michael Petullo <mike flyn org>
Date:   Sun Nov 19 12:58:32 2017 -0500

    Move version to 3.9/4.0
    
    Signed-off-by: W. Michael Petullo <mike flyn org>

 README-Porting                                     |    2 +-
 configure.ac                                       |    6 +-
 distro/libdmapsharing.spec                         |   27 ++++++----
 doc/Makefile.am                                    |    4 +-
 ...ng-3.2-docs.xml => libdmapsharing-4.0-docs.xml} |    4 +-
 ...d.pc.in => libdmapsharing-4.0-uninstalled.pc.in |    0
 ...apsharing-3.2.pc.in => libdmapsharing-4.0.pc.in |    0
 libdmapsharing/Makefile.am                         |   54 ++++++++++----------
 tests/Makefile.am                                  |   10 ++--
 tests/dpapview.vala                                |    2 +-
 tests/test-dmap-client-python                      |    4 +-
 tests/test-dmap-server-python                      |    4 +-
 tests/testpython.py                                |    4 +-
 tests/vala-dpap-record.vala                        |   18 +++---
 .../.libdmapsharing-3.1-uninstalled.excludes.swp   |  Bin 12288 -> 0 bytes
 .../libdmapsharing-3.2-uninstalled.files.in        |    2 -
 .../libdmapsharing-3.2-uninstalled.files.in        |    2 -
 .../libdmapsharing-3.2-uninstalled.files.in        |    2 -
 .../libdmapsharing-3.2-uninstalled.files.in        |    2 -
 .../libdmapsharing-4.0-uninstalled.excludes}       |    0
 .../libdmapsharing-4.0-uninstalled.files.in        |    2 +
 .../libdmapsharing-4.0-uninstalled.namespace}      |    0
 .../libdmapsharing-4.0.metadata}                   |    0
 .../libdmapsharing-4.0-uninstalled.excludes}       |    0
 .../libdmapsharing-4.0-uninstalled.files.in        |    2 +
 .../libdmapsharing-4.0-uninstalled.namespace}      |    0
 .../libdmapsharing-4.0.metadata}                   |    0
 .../libdmapsharing-4.0-uninstalled.excludes}       |    0
 .../libdmapsharing-4.0-uninstalled.files.in        |    2 +
 .../libdmapsharing-4.0-uninstalled.namespace}      |    0
 .../libdmapsharing-4.0.metadata}                   |    0
 .../libdmapsharing-4.0-uninstalled.excludes}       |    0
 .../libdmapsharing-4.0-uninstalled.files.in        |    2 +
 .../libdmapsharing-4.0-uninstalled.namespace}      |    0
 .../libdmapsharing-4.0.metadata}                   |    0
 35 files changed, 79 insertions(+), 76 deletions(-)
---
diff --git a/README-Porting b/README-Porting
index f1e8dc1..9260457 100644
--- a/README-Porting
+++ b/README-Porting
@@ -1,4 +1,4 @@
-Version 3.2 of the libdmapsharing API is incompatible with previous
+Version 4.0 of the libdmapsharing API is incompatible with previous
 versions. The primary reason for these changes is to better support
 GObject introspection and thus languages such as Python. The following
 are the key differences between the new and old APIs:
diff --git a/configure.ac b/configure.ac
index 7ade2c1..e91a046 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-AC_INIT(libdmapsharing, 3.1.0)
+AC_INIT(libdmapsharing, 3.9.0)
 
 dnl when going to/from release please set the nano (fourth number) right !
 dnl releases only do Wall, cvs and prerelease does Werror too
@@ -10,7 +10,7 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
 dnl FIXME:
 dnl would like to automate this off the above definitions, but API might be 2.2 with version 2.1.
 dnl see also Makefile.am, libdmapsharing/Makefile.am and libdmapsharing.pc.in
-API_VERSION=3.2
+API_VERSION=4.0
 #AC_DEFINE(API_VERSION, $API_VERSION, [library API version])
 AC_SUBST(API_VERSION)
 
@@ -323,7 +323,7 @@ PKG_CHECK_MODULES(GSTREAMERAPP,
 if test x"$HAVE_GSTREAMERAPP" = "xyes"; then
   AC_DEFINE(HAVE_GSTREAMERAPP, 1, [Define if GStreamer App support is enabled])
   GSTLIB=gstreamer-1.0
-  AC_SUBST(GSTLIB) # For libdmapsharing-3.2.pc.in.
+  AC_SUBST(GSTLIB) # For libdmapsharing-4.0.pc.in.
 else
   AC_WARN(GStreamer app element not present, transcoding will not be supported.)
 fi
diff --git a/distro/libdmapsharing.spec b/distro/libdmapsharing.spec
index da20682..c1217af 100644
--- a/distro/libdmapsharing.spec
+++ b/distro/libdmapsharing.spec
@@ -1,5 +1,5 @@
 Name: libdmapsharing
-Version: 3.1.0
+Version: 3.9.0
 Release: 1%{?dist}
 License: LGPLv2+
 Source: http://www.flyn.org/projects/libdmapsharing/%{name}-%{version}.tar.gz
@@ -16,7 +16,7 @@ libdmapsharing implements the DMAP protocols. This includes support for
 DAAP and DPAP.
 
 %files 
-%{_libdir}/libdmapsharing-3.2.so.*
+%{_libdir}/libdmapsharing-4.0.so.*
 %doc AUTHORS COPYING ChangeLog README
 
 %package devel
@@ -30,14 +30,14 @@ DAAP and DPAP.  This package provides the libraries, include files, and
 other resources needed for developing applications using libdmapsharing.
 
 %files devel
-%{_libdir}/pkgconfig/libdmapsharing-3.2.pc
-%{_includedir}/libdmapsharing-3.2/
-%{_libdir}/libdmapsharing-3.2.so
-%{_libdir}/girepository-1.0/DMAP-3.2.typelib
-%{_libdir}/girepository-1.0/DAAP-3.2.typelib
-%{_datadir}/gtk-doc/html/libdmapsharing-3.2
-%{_datadir}/gir-1.0/DMAP-3.2.gir
-%{_datadir}/gir-1.0/DAAP-3.2.gir
+%{_libdir}/pkgconfig/libdmapsharing-4.0.pc
+%{_includedir}/libdmapsharing-4.0/
+%{_libdir}/libdmapsharing-4.0.so
+%{_libdir}/girepository-1.0/DMAP-4.0.typelib
+%{_libdir}/girepository-1.0/DAAP-4.0.typelib
+%{_datadir}/gtk-doc/html/libdmapsharing-4.0
+%{_datadir}/gir-1.0/DMAP-4.0.gir
+%{_datadir}/gir-1.0/DAAP-4.0.gir
 
 %package vala
 Summary: Vala language bindings for libdmapsharing
@@ -50,7 +50,7 @@ DAAP and DPAP.  This package provides the Vala language bindings for
 libdmapsharing.
 
 %files vala
-%{_datadir}/vala/vapi/libdmapsharing-3.2.vapi
+%{_datadir}/vala/vapi/libdmapsharing-4.0.vapi
 
 %prep
 %setup -q
@@ -61,13 +61,16 @@ make %{?_smp_mflags}
 
 %install
 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
-rm -f ${RPM_BUILD_ROOT}%{_libdir}/libdmapsharing-3.2.la
+rm -f ${RPM_BUILD_ROOT}%{_libdir}/libdmapsharing-4.0.la
 
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 %changelog
+* Sun Nov 19 2017 W. Michael Petullo <mike[@]flyn.org> - 3.9.0-1
+- new upstream version with new API
+
 * Mon Aug 01 2016 W. Michael Petullo <mike[@]flyn.org> - 2.9.36-1
 - new upstream version to fix Bugzilla #1158652
 
diff --git a/doc/Makefile.am b/doc/Makefile.am
index fd0806f..4c136b9 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -9,7 +9,7 @@ AUTOMAKE_OPTIONS = 1.6
 # of using the various options.
 
 # The name of the module, e.g. 'glib'.
-DOC_MODULE=libdmapsharing-3.2
+DOC_MODULE=libdmapsharing-4.0
 
 # Uncomment for versioned docs and specify the version of the module, e.g. '2'.
 #DOC_MODULE_VERSION=2
@@ -95,7 +95,7 @@ GTKDOC_CFLAGS= \
        $(MDNS_CFLAGS)
 
 GTKDOC_LIBS= \
-       $(top_builddir)/libdmapsharing/libdmapsharing-3.2.la \
+       $(top_builddir)/libdmapsharing/libdmapsharing-4.0.la \
        $(CHECK_LIBS) \
        $(GLIB_LIBS) \
        $(GTHREAD_LIBS) \
diff --git a/doc/libdmapsharing-3.2-docs.xml b/doc/libdmapsharing-4.0-docs.xml
similarity index 96%
rename from doc/libdmapsharing-3.2-docs.xml
rename to doc/libdmapsharing-4.0-docs.xml
index d944393..3005483 100644
--- a/doc/libdmapsharing-3.2-docs.xml
+++ b/doc/libdmapsharing-4.0-docs.xml
@@ -6,9 +6,9 @@
 ]>
 <book id="index">
   <bookinfo>
-    <title>libdmapsharing-3.2 Reference Manual</title>
+    <title>libdmapsharing-4.0 Reference Manual</title>
     <releaseinfo>
-      for libdmapsharing 3.1.0.
+      for libdmapsharing 3.9.0.
       The latest version of this documentation can be found online at
       <ulink role="online-location" 
url="https://www.flyn.org/projects/libdmapsharing/doc/";>https://www.flyn.org/projects/libdmapsharing/doc/</ulink>.
     </releaseinfo>
diff --git a/libdmapsharing-3.2-uninstalled.pc.in b/libdmapsharing-4.0-uninstalled.pc.in
similarity index 100%
rename from libdmapsharing-3.2-uninstalled.pc.in
rename to libdmapsharing-4.0-uninstalled.pc.in
diff --git a/libdmapsharing-3.2.pc.in b/libdmapsharing-4.0.pc.in
similarity index 100%
rename from libdmapsharing-3.2.pc.in
rename to libdmapsharing-4.0.pc.in
diff --git a/libdmapsharing/Makefile.am b/libdmapsharing/Makefile.am
index fa5e4f8..d2cdfd5 100644
--- a/libdmapsharing/Makefile.am
+++ b/libdmapsharing/Makefile.am
@@ -1,6 +1,6 @@
-lib_LTLIBRARIES = libdmapsharing-3.2.la
+lib_LTLIBRARIES = libdmapsharing-4.0.la
 
-libdmapsharing_3_2_la_SOURCES = \
+libdmapsharing_4_0_la_SOURCES = \
        daap-connection.c \
        daap-record.c \
        daap-share.c \
@@ -26,7 +26,7 @@ libdmapsharing_3_2_la_SOURCES = \
        dpap-share.c
 
 if HAVE_CHECK
-libdmapsharing_3_2_la_SOURCES += \
+libdmapsharing_4_0_la_SOURCES += \
        test-daap-record.c \
        test-daap-record-factory.c \
        test-dpap-record.c \
@@ -35,15 +35,15 @@ libdmapsharing_3_2_la_SOURCES += \
 endif
 
 if USE_HOWL
-libdmapsharing_3_2_la_SOURCES += \
+libdmapsharing_4_0_la_SOURCES += \
        dmap-mdns-browser-howl.c
 else
 if USE_DNS_SD
-libdmapsharing_3_2_la_SOURCES += \
+libdmapsharing_4_0_la_SOURCES += \
        dmap-mdns-browser-dnssd.c \
        dmap-mdns-publisher-dnssd.c
 else
-libdmapsharing_3_2_la_SOURCES += \
+libdmapsharing_4_0_la_SOURCES += \
        dmap-mdns-avahi.c \
        dmap-mdns-browser-avahi.c \
        dmap-mdns-publisher-avahi.c
@@ -51,7 +51,7 @@ endif
 endif
 
 if USE_GSTREAMERAPP
-libdmapsharing_3_2_la_SOURCES += \
+libdmapsharing_4_0_la_SOURCES += \
        dmap-gst-input-stream.c \
        dmap-gst-mp3-input-stream.c \
        dmap-gst-qt-input-stream.c \
@@ -59,7 +59,7 @@ libdmapsharing_3_2_la_SOURCES += \
        gst-util.c
 endif
 
-libdmapsharing_3_2_la_CFLAGS = \
+libdmapsharing_4_0_la_CFLAGS = \
        -DG_LOG_DOMAIN=\"libdmapsharing\" \
        -I$(top_srcdir) \
        -I$(top_builddir) \
@@ -68,7 +68,7 @@ libdmapsharing_3_2_la_CFLAGS = \
        $(GSTREAMERAPP_CFLAGS) \
        $(MDNS_CFLAGS)
 
-libdmapsharing_3_2_la_LDFLAGS = \
+libdmapsharing_4_0_la_LDFLAGS = \
        -version-info @SO_VERSION@ \
        $(CHECK_LIBS) \
        $(GLIB_LIBS) \
@@ -165,23 +165,23 @@ INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all
 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
 introspection_sources = $(libdmapsharinginclude_HEADERS) $(libdmapsharinginclude_SOURCES)
 
-DMAP-3.2.gir: libdmapsharing-3.2.la
-DMAP_3_2_gir_NAMESPACE = DMAP 
-DMAP_3_2_gir_SCANNERFLAGS = --symbol-prefix=dmap
-DMAP_3_2_gir_LIBS = libdmapsharing-3.2.la
-DMAP_3_2_gir_FILES = $(introspection_sources)
-DMAP_3_2_gir_INCLUDES = GObject-2.0 Soup-2.4
-DMAP_3_2_gir_CFLAGS = $(INCLUDES) $(libdmapsharing_3_2_la_CFLAGS)
+DMAP-4.0.gir: libdmapsharing-4.0.la
+DMAP_4_0_gir_NAMESPACE = DMAP 
+DMAP_4_0_gir_SCANNERFLAGS = --symbol-prefix=dmap
+DMAP_4_0_gir_LIBS = libdmapsharing-4.0.la
+DMAP_4_0_gir_FILES = $(introspection_sources)
+DMAP_4_0_gir_INCLUDES = GObject-2.0 Soup-2.4
+DMAP_4_0_gir_CFLAGS = $(INCLUDES) $(libdmapsharing_4_0_la_CFLAGS)
 
-DAAP-3.2.gir: libdmapsharing-3.2.la DMAP-3.2.gir
-DAAP_3_2_gir_NAMESPACE = DAAP
-DAAP_3_2_gir_SCANNERFLAGS = --symbol-prefix=daap
-DAAP_3_2_gir_LIBS = libdmapsharing-3.2.la
-DAAP_3_2_gir_FILES = $(introspection_sources)
-DAAP_3_2_gir_INCLUDES = GObject-2.0 Soup-2.4 DMAP-3.2
-DAAP_3_2_gir_CFLAGS = $(INCLUDES) $(libdmapsharing_3_2_la_CFLAGS)
+DAAP-4.0.gir: libdmapsharing-4.0.la DMAP-4.0.gir
+DAAP_4_0_gir_NAMESPACE = DAAP
+DAAP_4_0_gir_SCANNERFLAGS = --symbol-prefix=daap
+DAAP_4_0_gir_LIBS = libdmapsharing-4.0.la
+DAAP_4_0_gir_FILES = $(introspection_sources)
+DAAP_4_0_gir_INCLUDES = GObject-2.0 Soup-2.4 DMAP-4.0
+DAAP_4_0_gir_CFLAGS = $(INCLUDES) $(libdmapsharing_4_0_la_CFLAGS)
 
-INTROSPECTION_GIRS = DMAP-3.2.gir DAAP-3.2.gir
+INTROSPECTION_GIRS = DMAP-4.0.gir DAAP-4.0.gir
 
 girdir = $(datadir)/gir-1.0
 gir_DATA = $(INTROSPECTION_GIRS)
@@ -211,12 +211,12 @@ if HAVE_PEDANSEE
        for i in $$(grep G_DEFINE_TYPE *.c | sed 's/.*(\([^,]*\),.*/\1/g'); do \
                echo -n $${i}_private_offset\;; \
        done >> pedansee.conf
-       set -e; for i in $(libdmapsharing_3_2_la_SOURCES); do \
-               $(PEDANSEE) -c pedansee.conf $$i -- -x c $(DEFS) $(libdmapsharing_3_2_la_CFLAGS); \
+       set -e; for i in $(libdmapsharing_4_0_la_SOURCES); do \
+               $(PEDANSEE) -c pedansee.conf $$i -- -x c $(DEFS) $(libdmapsharing_4_0_la_CFLAGS); \
        done
        set -e; for i in $(libdmapsharinginclude_HEADERS) \
                         $(noinst_HEADERS); do \
-               $(PEDANSEE) -c pedansee.conf $$i -- -x c $(DEFS) $(libdmapsharing_3_2_la_CFLAGS); \
+               $(PEDANSEE) -c pedansee.conf $$i -- -x c $(DEFS) $(libdmapsharing_4_0_la_CFLAGS); \
        done
 endif
 
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 4674470..fc24b5d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -7,7 +7,7 @@ endif
 
 # Automake documentation mentions LDADD, but it does not work;
 # LIBS does.
-LIBS = $(top_builddir)/libdmapsharing/libdmapsharing-3.2.la
+LIBS = $(top_builddir)/libdmapsharing/libdmapsharing-4.0.la
 
 if HAVE_CHECK
 noinst_PROGRAMS += unit-test
@@ -48,19 +48,19 @@ BUILT_SOURCES = dacplisten.stamp dpapview.stamp dmapcopy.stamp dmapserve.stamp
 endif
 
 dacplisten.stamp: $(dacplisten_VALASOURCES)
-       $(VALAC) --vapidir=../vala --pkg gee-0.8 --pkg gstreamer-1.0 --pkg libdmapsharing-3.2 --pkg 
libsoup-2.4 --pkg gio-2.0 --pkg avahi-gobject  $^ -C
+       $(VALAC) --vapidir=../vala --pkg gee-0.8 --pkg gstreamer-1.0 --pkg libdmapsharing-4.0 --pkg 
libsoup-2.4 --pkg gio-2.0 --pkg avahi-gobject  $^ -C
        touch $@
 
 dpapview.stamp: $(dpapview_VALASOURCES)
-       $(VALAC) --vapidir=../vala --pkg gee-0.8 --pkg gtk+-2.0 --pkg gstreamer-1.0 --pkg libdmapsharing-3.2 
--pkg libsoup-2.4 --pkg gio-2.0 --pkg avahi-gobject $^ -C
+       $(VALAC) --vapidir=../vala --pkg gee-0.8 --pkg gtk+-2.0 --pkg gstreamer-1.0 --pkg libdmapsharing-4.0 
--pkg libsoup-2.4 --pkg gio-2.0 --pkg avahi-gobject $^ -C
        touch $@
 
 dmapcopy.stamp: $(dmapcopy_VALASOURCES)
-       $(VALAC) --vapidir=../vala --pkg gee-0.8 --pkg gstreamer-1.0 --pkg libdmapsharing-3.2 --pkg 
libsoup-2.4 --pkg gio-2.0 --pkg avahi-gobject $^ -C
+       $(VALAC) --vapidir=../vala --pkg gee-0.8 --pkg gstreamer-1.0 --pkg libdmapsharing-4.0 --pkg 
libsoup-2.4 --pkg gio-2.0 --pkg avahi-gobject $^ -C
        touch $@
 
 dmapserve.stamp: $(dmapserve_VALASOURCES)
-       $(VALAC) --vapidir=../vala --pkg gee-0.8 --pkg gstreamer-1.0 --pkg libdmapsharing-3.2 --pkg 
libsoup-2.4 --pkg gio-2.0 --pkg avahi-gobject $^ -C
+       $(VALAC) --vapidir=../vala --pkg gee-0.8 --pkg gstreamer-1.0 --pkg libdmapsharing-4.0 --pkg 
libsoup-2.4 --pkg gio-2.0 --pkg avahi-gobject $^ -C
        touch $@
 endif
 
diff --git a/tests/dpapview.vala b/tests/dpapview.vala
index 08ac329..cf42a9e 100644
--- a/tests/dpapview.vala
+++ b/tests/dpapview.vala
@@ -35,7 +35,7 @@ private class DPAPViewer {
                        if (((ValaDPAPRecord) v).thumbnail != null) {
                                string path;
                                int fd = GLib.FileUtils.open_tmp ("dpapview.XXXXXX", out path);
-                               GLib.FileUtils.set_data (path, ((ValaDPAPRecord) v).thumbnail.data);
+                               GLib.FileUtils.set_data (path, (uint8[]) ((ValaDPAPRecord) v).thumbnail.data);
                                GLib.FileUtils.close (fd);
                                pixbuf = new Gdk.Pixbuf.from_file (path);
                                GLib.FileUtils.unlink (path);
diff --git a/tests/test-dmap-client-python b/tests/test-dmap-client-python
index b60e6dc..905dba8 100755
--- a/tests/test-dmap-client-python
+++ b/tests/test-dmap-client-python
@@ -3,8 +3,8 @@
 import gi
 import sys
 
-gi.require_version('DMAP', '3.2')
-gi.require_version('DAAP', '3.2')
+gi.require_version('DMAP', '4.0')
+gi.require_version('DAAP', '4.0')
 
 from gi.repository import GObject
 from gi.repository import GLib
diff --git a/tests/test-dmap-server-python b/tests/test-dmap-server-python
index 360ae9e..7614147 100755
--- a/tests/test-dmap-server-python
+++ b/tests/test-dmap-server-python
@@ -3,8 +3,8 @@
 import gi
 import sys
 
-gi.require_version('DMAP', '3.2')
-gi.require_version('DAAP', '3.2')
+gi.require_version('DMAP', '4.0')
+gi.require_version('DAAP', '4.0')
 
 from gi.repository import GObject
 from gi.repository import GLib
diff --git a/tests/testpython.py b/tests/testpython.py
index 360ea91..8b5c56f 100644
--- a/tests/testpython.py
+++ b/tests/testpython.py
@@ -1,7 +1,7 @@
 import gi
 
-gi.require_version('DMAP', '3.2')
-gi.require_version('DAAP', '3.2')
+gi.require_version('DMAP', '4.0')
+gi.require_version('DAAP', '4.0')
 
 from gi.repository import GObject
 from gi.repository import GLib
diff --git a/tests/vala-dpap-record.vala b/tests/vala-dpap-record.vala
index dd76c43..b545deb 100644
--- a/tests/vala-dpap-record.vala
+++ b/tests/vala-dpap-record.vala
@@ -26,7 +26,7 @@ private class ValaDPAPRecord : GLib.Object, DMAP.Record, DPAP.Record {
        private string _aspect_ratio;
        private string _format;
        private string _comments;
-       GLib.ByteArray _thumbnail;
+       GLib.Array _thumbnail;
        private int _large_filesize;
        private int _pixel_height;
        private int _pixel_width;
@@ -53,11 +53,11 @@ private class ValaDPAPRecord : GLib.Object, DMAP.Record, DPAP.Record {
                set { _format = value; }
        }
 
-       public GLib.ByteArray thumbnail {
+       public GLib.Array thumbnail {
                get { return _thumbnail; }
-               set { /* C implementations just use g_byte_array_ref (value); */
-                       _thumbnail = new GLib.ByteArray ();
-                       _thumbnail.append (value.data);
+               set {
+                       _thumbnail = new GLib.Array<uint8> (false, false, 1);
+                       _thumbnail.append_vals (value.data, value.data.length);
                }
        }
 
@@ -95,11 +95,11 @@ private class ValaDPAPRecord : GLib.Object, DMAP.Record, DPAP.Record {
                GLib.error ("read not implemented");
        }
 
-       public unowned bool set_from_blob (GLib.ByteArray blob) {
+       public unowned bool set_from_blob (GLib.Array blob) {
                GLib.error ("set_from_blob not implemented");
        }
 
-       public unowned GLib.ByteArray to_blob () {
+       public unowned GLib.Array to_blob () {
                GLib.error ("to_blob not implemented");
        }
 
@@ -118,8 +118,8 @@ private class ValaDPAPRecord : GLib.Object, DMAP.Record, DPAP.Record {
                string path = GLib.Environment.get_current_dir () + "/media/test.jpeg";
                uint8[] data;
                GLib.FileUtils.get_data (path, out data);
-               _thumbnail = new GLib.ByteArray ();
-               _thumbnail.append (data);
+               _thumbnail = new GLib.Array<uint8> (false, false, 1);
+               _thumbnail.append_vals (data, data.length);
        }
 }
 
diff --git a/vala/libdmapsharing-3.2-daap/libdmapsharing-3.2-uninstalled.excludes 
b/vala/libdmapsharing-4.0-daap/libdmapsharing-4.0-uninstalled.excludes
similarity index 100%
rename from vala/libdmapsharing-3.2-daap/libdmapsharing-3.2-uninstalled.excludes
rename to vala/libdmapsharing-4.0-daap/libdmapsharing-4.0-uninstalled.excludes
diff --git a/vala/libdmapsharing-4.0-daap/libdmapsharing-4.0-uninstalled.files.in 
b/vala/libdmapsharing-4.0-daap/libdmapsharing-4.0-uninstalled.files.in
new file mode 100644
index 0000000..cf6497b
--- /dev/null
+++ b/vala/libdmapsharing-4.0-daap/libdmapsharing-4.0-uninstalled.files.in
@@ -0,0 +1,2 @@
+@srcdir@/../libdmapsharing/
+@builddir@/../libdmapsharing/.libs/libdmapsharing-4.0.so
diff --git a/vala/libdmapsharing-3.2-daap/libdmapsharing-3.2-uninstalled.namespace 
b/vala/libdmapsharing-4.0-daap/libdmapsharing-4.0-uninstalled.namespace
similarity index 100%
rename from vala/libdmapsharing-3.2-daap/libdmapsharing-3.2-uninstalled.namespace
rename to vala/libdmapsharing-4.0-daap/libdmapsharing-4.0-uninstalled.namespace
diff --git a/vala/libdmapsharing-3.2-daap/libdmapsharing-3.2.metadata 
b/vala/libdmapsharing-4.0-daap/libdmapsharing-4.0.metadata
similarity index 100%
rename from vala/libdmapsharing-3.2-daap/libdmapsharing-3.2.metadata
rename to vala/libdmapsharing-4.0-daap/libdmapsharing-4.0.metadata
diff --git a/vala/libdmapsharing-3.2-dacp/libdmapsharing-3.2-uninstalled.excludes 
b/vala/libdmapsharing-4.0-dacp/libdmapsharing-4.0-uninstalled.excludes
similarity index 100%
rename from vala/libdmapsharing-3.2-dacp/libdmapsharing-3.2-uninstalled.excludes
rename to vala/libdmapsharing-4.0-dacp/libdmapsharing-4.0-uninstalled.excludes
diff --git a/vala/libdmapsharing-4.0-dacp/libdmapsharing-4.0-uninstalled.files.in 
b/vala/libdmapsharing-4.0-dacp/libdmapsharing-4.0-uninstalled.files.in
new file mode 100644
index 0000000..cf6497b
--- /dev/null
+++ b/vala/libdmapsharing-4.0-dacp/libdmapsharing-4.0-uninstalled.files.in
@@ -0,0 +1,2 @@
+@srcdir@/../libdmapsharing/
+@builddir@/../libdmapsharing/.libs/libdmapsharing-4.0.so
diff --git a/vala/libdmapsharing-3.2-dacp/libdmapsharing-3.2-uninstalled.namespace 
b/vala/libdmapsharing-4.0-dacp/libdmapsharing-4.0-uninstalled.namespace
similarity index 100%
rename from vala/libdmapsharing-3.2-dacp/libdmapsharing-3.2-uninstalled.namespace
rename to vala/libdmapsharing-4.0-dacp/libdmapsharing-4.0-uninstalled.namespace
diff --git a/vala/libdmapsharing-3.2-dacp/libdmapsharing-3.2.metadata 
b/vala/libdmapsharing-4.0-dacp/libdmapsharing-4.0.metadata
similarity index 100%
rename from vala/libdmapsharing-3.2-dacp/libdmapsharing-3.2.metadata
rename to vala/libdmapsharing-4.0-dacp/libdmapsharing-4.0.metadata
diff --git a/vala/libdmapsharing-3.2-dmap/libdmapsharing-3.2-uninstalled.excludes 
b/vala/libdmapsharing-4.0-dmap/libdmapsharing-4.0-uninstalled.excludes
similarity index 100%
rename from vala/libdmapsharing-3.2-dmap/libdmapsharing-3.2-uninstalled.excludes
rename to vala/libdmapsharing-4.0-dmap/libdmapsharing-4.0-uninstalled.excludes
diff --git a/vala/libdmapsharing-4.0-dmap/libdmapsharing-4.0-uninstalled.files.in 
b/vala/libdmapsharing-4.0-dmap/libdmapsharing-4.0-uninstalled.files.in
new file mode 100644
index 0000000..cf6497b
--- /dev/null
+++ b/vala/libdmapsharing-4.0-dmap/libdmapsharing-4.0-uninstalled.files.in
@@ -0,0 +1,2 @@
+@srcdir@/../libdmapsharing/
+@builddir@/../libdmapsharing/.libs/libdmapsharing-4.0.so
diff --git a/vala/libdmapsharing-3.2-dmap/libdmapsharing-3.2-uninstalled.namespace 
b/vala/libdmapsharing-4.0-dmap/libdmapsharing-4.0-uninstalled.namespace
similarity index 100%
rename from vala/libdmapsharing-3.2-dmap/libdmapsharing-3.2-uninstalled.namespace
rename to vala/libdmapsharing-4.0-dmap/libdmapsharing-4.0-uninstalled.namespace
diff --git a/vala/libdmapsharing-3.2-dmap/libdmapsharing-3.2.metadata 
b/vala/libdmapsharing-4.0-dmap/libdmapsharing-4.0.metadata
similarity index 100%
rename from vala/libdmapsharing-3.2-dmap/libdmapsharing-3.2.metadata
rename to vala/libdmapsharing-4.0-dmap/libdmapsharing-4.0.metadata
diff --git a/vala/libdmapsharing-3.2-dpap/libdmapsharing-3.2-uninstalled.excludes 
b/vala/libdmapsharing-4.0-dpap/libdmapsharing-4.0-uninstalled.excludes
similarity index 100%
rename from vala/libdmapsharing-3.2-dpap/libdmapsharing-3.2-uninstalled.excludes
rename to vala/libdmapsharing-4.0-dpap/libdmapsharing-4.0-uninstalled.excludes
diff --git a/vala/libdmapsharing-4.0-dpap/libdmapsharing-4.0-uninstalled.files.in 
b/vala/libdmapsharing-4.0-dpap/libdmapsharing-4.0-uninstalled.files.in
new file mode 100644
index 0000000..cf6497b
--- /dev/null
+++ b/vala/libdmapsharing-4.0-dpap/libdmapsharing-4.0-uninstalled.files.in
@@ -0,0 +1,2 @@
+@srcdir@/../libdmapsharing/
+@builddir@/../libdmapsharing/.libs/libdmapsharing-4.0.so
diff --git a/vala/libdmapsharing-3.2-dpap/libdmapsharing-3.2-uninstalled.namespace 
b/vala/libdmapsharing-4.0-dpap/libdmapsharing-4.0-uninstalled.namespace
similarity index 100%
rename from vala/libdmapsharing-3.2-dpap/libdmapsharing-3.2-uninstalled.namespace
rename to vala/libdmapsharing-4.0-dpap/libdmapsharing-4.0-uninstalled.namespace
diff --git a/vala/libdmapsharing-3.2-dpap/libdmapsharing-3.2.metadata 
b/vala/libdmapsharing-4.0-dpap/libdmapsharing-4.0.metadata
similarity index 100%
rename from vala/libdmapsharing-3.2-dpap/libdmapsharing-3.2.metadata
rename to vala/libdmapsharing-4.0-dpap/libdmapsharing-4.0.metadata


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]