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
This commit is contained in:
Tim-Philipp Müller 2014-05-13 19:30:38 +01:00
parent b17ea57223
commit fa94322349
8 changed files with 6 additions and 30 deletions

View 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>

View 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 \

View 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

View file

@ -24,7 +24,7 @@
#include <gst/gst.h>
#include <stdio.h>
#include <gst/base/gstsparsefile.h>
#include "gstsparsefile.h"
G_BEGIN_DECLS

View 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,

View 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