sparsefile: keep it private as helper API for downloadbuffer
authorTim-Philipp Müller <tim@centricular.com>
Tue, 13 May 2014 18:30:38 +0000 (19:30 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 13 May 2014 19:05:55 +0000 (20:05 +0100)
There's no expectation that any other element or applications
might want to use this helper API any time soon, so keep it
private for the time being. There were open questions regarding
portability and binding-friendliness too.

This also removes the gio dependency of -base again.

https://bugzilla.gnome.org/show_bug.cgi?id=729951
https://bugzilla.gnome.org/show_bug.cgi?id=729949

docs/libs/gstreamer-libs-sections.txt
libs/gst/base/Makefile.am
plugins/elements/Makefile.am
plugins/elements/gstdownloadbuffer.h
plugins/elements/gstsparsefile.c [moved from libs/gst/base/gstsparsefile.c with 100% similarity]
plugins/elements/gstsparsefile.h [moved from libs/gst/base/gstsparsefile.h with 100% similarity]
tests/check/libs/sparsefile.c
win32/common/libgstbase.def

index e6eee1f..fbc0a71 100644 (file)
@@ -840,22 +840,6 @@ gst_queue_array_drop_element
 gst_queue_array_find
 </SECTION>
 
-<SECTION>
-<FILE>gstsparsefile</FILE>
-<TITLE>GstSparseFile</TITLE>
-<INCLUDE>gst/base/gstsparsefile.h</INCLUDE>
-GstSparseFile
-gst_sparse_file_new
-gst_sparse_file_free
-gst_sparse_file_set_fd
-gst_sparse_file_clear
-gst_sparse_file_write
-gst_sparse_file_read
-gst_sparse_file_n_ranges
-gst_sparse_file_get_range_before
-gst_sparse_file_get_range_after
-</SECTION>
-
 # net
 
 <SECTION>
index 1628b60..650b97f 100644 (file)
@@ -11,7 +11,6 @@ libgstbase_@GST_API_VERSION@_la_SOURCES = \
        gstbitreader.c          \
        gstbytereader.c         \
        gstbytewriter.c         \
-       gstsparsefile.c         \
        gstcollectpads.c        \
        gstdataqueue.c          \
        gstpushsrc.c            \
@@ -19,7 +18,7 @@ libgstbase_@GST_API_VERSION@_la_SOURCES = \
        gsttypefindhelper.c
 
 libgstbase_@GST_API_VERSION@_la_CFLAGS = $(GST_OBJ_CFLAGS)
-libgstbase_@GST_API_VERSION@_la_LIBADD = $(GST_OBJ_LIBS) $(GIO_LIBS)
+libgstbase_@GST_API_VERSION@_la_LIBADD = $(GST_OBJ_LIBS)
 libgstbase_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
 
 libgstbase_@GST_API_VERSION@includedir =               \
@@ -35,7 +34,6 @@ libgstbase_@GST_API_VERSION@include_HEADERS = \
        gstbitreader.h          \
        gstbytereader.h         \
        gstbytewriter.h         \
-       gstsparsefile.h         \
        gstcollectpads.h        \
        gstdataqueue.h          \
        gstpushsrc.h            \
index c1df7db..164c4a9 100644 (file)
@@ -19,6 +19,7 @@ libgstcoreelements_la_SOURCES =       \
        gstmultiqueue.c         \
        gstqueue.c              \
        gstqueue2.c             \
+       gstsparsefile.c         \
        gsttee.c                \
        gsttypefindelement.c    \
        gstvalve.c
@@ -46,6 +47,7 @@ noinst_HEADERS =              \
        gstmultiqueue.h         \
        gstqueue.h              \
        gstqueue2.h             \
+       gstsparsefile.h         \
        gsttee.h                \
        gsttypefindelement.h    \
        gstvalve.h
index 7ff0ba0..f38cdd9 100644 (file)
@@ -24,7 +24,7 @@
 #include <gst/gst.h>
 #include <stdio.h>
 
-#include <gst/base/gstsparsefile.h>
+#include "gstsparsefile.h"
 
 G_BEGIN_DECLS
 
index c8cc78c..6d291b4 100644 (file)
@@ -28,7 +28,8 @@
 
 #include <gst/check/gstcheck.h>
 
-#include <gst/base/gstsparsefile.h>
+/* not public API for now */
+#include "../../../plugins/elements/gstsparsefile.c"
 
 static void
 expect_range_before (GstSparseFile * file, gsize offset, gsize start,
index 75a27bf..8049a96 100644 (file)
@@ -272,15 +272,6 @@ EXPORTS
        gst_queue_array_peek_head
        gst_queue_array_pop_head
        gst_queue_array_push_tail
-       gst_sparse_file_clear
-       gst_sparse_file_free
-       gst_sparse_file_get_range_after
-       gst_sparse_file_get_range_before
-       gst_sparse_file_n_ranges
-       gst_sparse_file_new
-       gst_sparse_file_read
-       gst_sparse_file_set_fd
-       gst_sparse_file_write
        gst_type_find_helper
        gst_type_find_helper_for_buffer
        gst_type_find_helper_for_data