From: Tim-Philipp Müller Date: Tue, 13 May 2014 18:30:38 +0000 (+0100) Subject: sparsefile: keep it private as helper API for downloadbuffer X-Git-Tag: 1.3.2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa94322349808e6c4fac1e48204fd5602f4e99e3;p=platform%2Fupstream%2Fgstreamer.git sparsefile: keep it private as helper API for downloadbuffer 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 --- diff --git a/docs/libs/gstreamer-libs-sections.txt b/docs/libs/gstreamer-libs-sections.txt index e6eee1f..fbc0a71 100644 --- a/docs/libs/gstreamer-libs-sections.txt +++ b/docs/libs/gstreamer-libs-sections.txt @@ -840,22 +840,6 @@ gst_queue_array_drop_element gst_queue_array_find -
-gstsparsefile -GstSparseFile -gst/base/gstsparsefile.h -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 -
- # net
diff --git a/libs/gst/base/Makefile.am b/libs/gst/base/Makefile.am index 1628b60..650b97f 100644 --- a/libs/gst/base/Makefile.am +++ b/libs/gst/base/Makefile.am @@ -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 \ diff --git a/plugins/elements/Makefile.am b/plugins/elements/Makefile.am index c1df7db..164c4a9 100644 --- a/plugins/elements/Makefile.am +++ b/plugins/elements/Makefile.am @@ -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 diff --git a/plugins/elements/gstdownloadbuffer.h b/plugins/elements/gstdownloadbuffer.h index 7ff0ba0..f38cdd9 100644 --- a/plugins/elements/gstdownloadbuffer.h +++ b/plugins/elements/gstdownloadbuffer.h @@ -24,7 +24,7 @@ #include #include -#include +#include "gstsparsefile.h" G_BEGIN_DECLS diff --git a/libs/gst/base/gstsparsefile.c b/plugins/elements/gstsparsefile.c similarity index 100% rename from libs/gst/base/gstsparsefile.c rename to plugins/elements/gstsparsefile.c diff --git a/libs/gst/base/gstsparsefile.h b/plugins/elements/gstsparsefile.h similarity index 100% rename from libs/gst/base/gstsparsefile.h rename to plugins/elements/gstsparsefile.h diff --git a/tests/check/libs/sparsefile.c b/tests/check/libs/sparsefile.c index c8cc78c..6d291b4 100644 --- a/tests/check/libs/sparsefile.c +++ b/tests/check/libs/sparsefile.c @@ -28,7 +28,8 @@ #include -#include +/* not public API for now */ +#include "../../../plugins/elements/gstsparsefile.c" static void expect_range_before (GstSparseFile * file, gsize offset, gsize start, diff --git a/win32/common/libgstbase.def b/win32/common/libgstbase.def index 75a27bf..8049a96 100644 --- a/win32/common/libgstbase.def +++ b/win32/common/libgstbase.def @@ -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