gst/: Make things work with --disable-parse as they do with

Original commit message from CVS:
* gst/Makefile.am:
* gst/gstparse.h:
* gst/gstutils.c:
* gst/gstutils.h:
Make things work with --disable-parse as they do with
--disable-load-save - the symbols involved disappear, but the
header is still installed and GST_DISABLE_PARSE is included via
gstconfig.h
This commit is contained in:
Jan Schmidt 2006-02-20 23:34:40 +00:00
parent 4bcfb92b9a
commit e2cca3d699
5 changed files with 26 additions and 3 deletions

View file

@ -1,3 +1,14 @@
2006-02-21 Jan Schmidt <thaytan@mad.scientist.com>
* gst/Makefile.am:
* gst/gstparse.h:
* gst/gstutils.c:
* gst/gstutils.h:
Make things work with --disable-parse as they do with
--disable-load-save - the symbols involved disappear, but the
header is still installed and GST_DISABLE_PARSE is included via
gstconfig.h
2006-02-20 Julien MOUTTE <julien@moutte.net>
* libs/gst/base/gstbasetransform.c:

View file

@ -14,12 +14,10 @@ endif
if GST_DISABLE_PARSE
GST_PARSE_SRC =
GST_PARSE_H =
SUBDIRS_PARSE =
GST_PARSE_LA =
else
GST_PARSE_SRC = gstparse.c
GST_PARSE_H = gstparse.h
SUBDIRS_PARSE = parse
GST_PARSE_LA = parse/libgstparse.la
endif
@ -190,7 +188,7 @@ gst_headers = \
gstutils.h \
gstvalue.h \
gstregistry.h \
$(GST_PARSE_H) \
gstparse.h \
gstxml.h
libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)

View file

@ -23,6 +23,8 @@
#ifndef __GST_PARSE_H__
#define __GST_PARSE_H__
#include <gst/gstconfig.h>
#include <gst/gstelement.h>
G_BEGIN_DECLS

View file

@ -3047,6 +3047,7 @@ gst_bin_find_unconnected_pad (GstBin * bin, GstPadDirection direction)
return pad;
}
#ifndef GST_DISABLE_PARSE
/**
* gst_parse_bin_from_description:
* @bin_description: command line describing the bin
@ -3107,3 +3108,4 @@ gst_parse_bin_from_description (const gchar * bin_description,
return GST_ELEMENT (bin);
}
#endif

View file

@ -25,6 +25,8 @@
#ifndef __GST_UTILS_H__
#define __GST_UTILS_H__
#include <gst/gstconfig.h>
#include <glib.h>
#include <gst/gstbin.h>
@ -599,10 +601,18 @@ void gst_element_found_tags_for_pad (GstElement * element,
void gst_element_found_tags (GstElement * element,
GstTagList * list);
#ifndef GST_DISABLE_PARSE
/* parse utility functions */
GstElement * gst_parse_bin_from_description (const gchar * bin_description,
gboolean ghost_unconnected_pads,
GError ** err);
#else /* GST_DISABLE_PARSE */
#if defined _GNUC_ && _GNUC_ >= 3
#pragma GCC poison gst_parse_bin_from_description
#endif
#endif
G_END_DECLS