[gst-devel] extern "C"

Ronald Bultje rbultje at ronald.bitfreak.net
Thu Jul 17 08:52:09 CEST 2003


Hey,

On Thu, 2003-07-17 at 14:47, Gustavo J. A. M. Carneiro wrote:
> GStreamer headers should be using G_BEGIN_DECLS / G_END_DECLS.

Most of them do. The only one that didn't that I was aware of, was
gstinfo.h, but I fixed that a week ago or so. If there's any other,
please let us know.

Scriptwise:

for header in $(find . -name '*.h'); do
	grep G_BEGIN_DECLS $header &> /dev/null || \
		echo "$header doesn't have G_BEGIN_DECLS"
	done

Output (in $prefix/include/ after doing make prefix=$prefix install in
the gstreamer HEAD source dir):

./gst/gstcompat.h doesn't have G_BEGIN_DECLS
./gst/gstcpu.h doesn't have G_BEGIN_DECLS
./gst/gstfilter.h doesn't have G_BEGIN_DECLS
./gst/gstlog.h doesn't have G_BEGIN_DECLS
./gst/gstmacros.h doesn't have G_BEGIN_DECLS
./gst/gstconfig.h doesn't have G_BEGIN_DECLS
./gst/gstversion.h doesn't have G_BEGIN_DECLS

Anyone willing to check which of these need it and - if any - fix it?

Ronald

-- 
Ronald Bultje <rbultje at ronald.bitfreak.net>





More information about the gstreamer-devel mailing list