[libdmapsharing] Move definition of DMAP_SHARE_CHUNK_SIZE



commit 3a94b915db8792445f79a833a9b16f9239786d97
Author: W. Michael Petullo <mike flyn org>
Date:   Tue Dec 19 14:32:47 2017 -0500

    Move definition of DMAP_SHARE_CHUNK_SIZE
    
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/dmap-private-utils.c |    2 --
 libdmapsharing/dmap-private-utils.h |    3 +++
 vala/libdmapsharing-4.0.vapi        |    8 ++++++++
 3 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/libdmapsharing/dmap-private-utils.c b/libdmapsharing/dmap-private-utils.c
index 02bade1..d883717 100644
--- a/libdmapsharing/dmap-private-utils.c
+++ b/libdmapsharing/dmap-private-utils.c
@@ -22,8 +22,6 @@
 
 #include "dmap-private-utils.h"
 
-#define DMAP_SHARE_CHUNK_SIZE 16384
-
 void
 dmap_write_next_chunk (SoupMessage * message, ChunkData * cd)
 {
diff --git a/libdmapsharing/dmap-private-utils.h b/libdmapsharing/dmap-private-utils.h
index 3a4dcd3..5a0e858 100644
--- a/libdmapsharing/dmap-private-utils.h
+++ b/libdmapsharing/dmap-private-utils.h
@@ -26,6 +26,9 @@
 #include <libdmapsharing/dmap-config.h>
 
 G_BEGIN_DECLS
+
+#define DMAP_SHARE_CHUNK_SIZE 16384
+
 #if DMAP_HAVE_UNALIGNED_ACCESS
 #define _DMAP_GET(__data, __size, __end) \
     (GUINT##__size##_FROM_##__end (* ((guint##__size *) (__data))))
diff --git a/vala/libdmapsharing-4.0.vapi b/vala/libdmapsharing-4.0.vapi
index e762304..e15dcdd 100644
--- a/vala/libdmapsharing-4.0.vapi
+++ b/vala/libdmapsharing-4.0.vapi
@@ -612,6 +612,8 @@ namespace DAAP {
        [CCode (cheader_filename = "libdmapsharing/dmap.h")]
        public const int DMAP_HAVE_UNALIGNED_ACCESS;
        [CCode (cheader_filename = "libdmapsharing/dmap.h")]
+       public const int DMAP_SHARE_CHUNK_SIZE;
+       [CCode (cheader_filename = "libdmapsharing/dmap.h")]
        public const int DMAP_STATUS_OK;
        [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_chunked_message_finished")]
        public static void dmap_chunked_message_finished (Soup.Message message, DAAP.ChunkData cd);
@@ -1345,6 +1347,8 @@ namespace DACP {
        [CCode (cheader_filename = "libdmapsharing/dmap.h")]
        public const int DMAP_HAVE_UNALIGNED_ACCESS;
        [CCode (cheader_filename = "libdmapsharing/dmap.h")]
+       public const int DMAP_SHARE_CHUNK_SIZE;
+       [CCode (cheader_filename = "libdmapsharing/dmap.h")]
        public const int DMAP_STATUS_OK;
        [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_chunked_message_finished")]
        public static void dmap_chunked_message_finished (Soup.Message message, DACP.ChunkData cd);
@@ -1935,6 +1939,8 @@ namespace DMAP {
        [CCode (cheader_filename = "libdmapsharing/dmap.h")]
        public const int HAVE_UNALIGNED_ACCESS;
        [CCode (cheader_filename = "libdmapsharing/dmap.h")]
+       public const int SHARE_CHUNK_SIZE;
+       [CCode (cheader_filename = "libdmapsharing/dmap.h")]
        public const int STATUS_OK;
        [CCode (cheader_filename = "libdmapsharing/dmap.h")]
        public static void chunked_message_finished (Soup.Message message, DMAP.ChunkData cd);
@@ -2601,6 +2607,8 @@ namespace DPAP {
        [CCode (cheader_filename = "libdmapsharing/dmap.h")]
        public const int DMAP_HAVE_UNALIGNED_ACCESS;
        [CCode (cheader_filename = "libdmapsharing/dmap.h")]
+       public const int DMAP_SHARE_CHUNK_SIZE;
+       [CCode (cheader_filename = "libdmapsharing/dmap.h")]
        public const int DMAP_STATUS_OK;
        [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_chunked_message_finished")]
        public static void dmap_chunked_message_finished (Soup.Message message, DPAP.ChunkData cd);


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