From: <tp...@ke...> - 2009-07-03 17:25:54
|
Module: gst-plugins-bad Branch: master Commit: 6a763f6a471e9fbbd86358b0175498a6af78666e URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=6a763f6a471e9fbbd86358b0175498a6af78666e Author: Tim-Philipp Müller <tim...@co...> Date: Fri Jul 3 16:08:38 2009 +0100 basevideo, schroedinger: guard unstable API with GST_USE_UNSTABLE_API Add some guards and fat warnings to the header files with still unstable API, so people who just look at the installed headers know that it actually is unstable API. --- ext/schroedinger/Makefile.am | 1 + gst-libs/gst/video/Makefile.am | 2 +- gst-libs/gst/video/gstbasevideocodec.h | 5 +++++ gst-libs/gst/video/gstbasevideodecoder.h | 5 +++++ gst-libs/gst/video/gstbasevideoencoder.h | 5 +++++ gst-libs/gst/video/gstbasevideoparse.h | 5 +++++ gst-libs/gst/video/gstbasevideoutils.h | 5 +++++ 7 files changed, 27 insertions(+), 1 deletions(-) diff --git a/ext/schroedinger/Makefile.am b/ext/schroedinger/Makefile.am index 2386924..6a895c5 100644 --- a/ext/schroedinger/Makefile.am +++ b/ext/schroedinger/Makefile.am @@ -14,6 +14,7 @@ libgstschro_la_CFLAGS = \ $(GST_CFLAGS) \ $(GST_BASE_CFLAGS) \ $(GST_PLUGINS_BASE_CFLAGS) \ + -DGST_USE_UNSTABLE_API \ $(SCHRO_CFLAGS) libgstschro_la_LIBADD = \ $(GST_LIBS) \ diff --git a/gst-libs/gst/video/Makefile.am b/gst-libs/gst/video/Makefile.am index 2b7263b..6836a05 100644 --- a/gst-libs/gst/video/Makefile.am +++ b/gst-libs/gst/video/Makefile.am @@ -18,7 +18,7 @@ libgstbasevideo_@GST_MAJORMINOR@include_HEADERS = \ gstbasevideoencoder.h \ gstbasevideoparse.h -libgstbasevideo_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) +libgstbasevideo_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) -DGST_USE_UNSTABLE_API libgstbasevideo_@GST_MAJORMINOR@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) libgstbasevideo_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS) diff --git a/gst-libs/gst/video/gstbasevideocodec.h b/gst-libs/gst/video/gstbasevideocodec.h index f4a1cf9..b6acf62 100644 --- a/gst-libs/gst/video/gstbasevideocodec.h +++ b/gst-libs/gst/video/gstbasevideocodec.h @@ -20,6 +20,11 @@ #ifndef _GST_BASE_VIDEO_CODEC_H_ #define _GST_BASE_VIDEO_CODEC_H_ +#ifndef GST_USE_UNSTABLE_API +#warning "GstBaseVideoCodec is unstable API and may change in future." +#warning "You can define GST_USE_UNSTABLE_API to avoid this warning." +#endif + #include <gst/gst.h> #include <gst/video/gstbasevideoutils.h> diff --git a/gst-libs/gst/video/gstbasevideodecoder.h b/gst-libs/gst/video/gstbasevideodecoder.h index 5e734a2..1daf728 100644 --- a/gst-libs/gst/video/gstbasevideodecoder.h +++ b/gst-libs/gst/video/gstbasevideodecoder.h @@ -20,6 +20,11 @@ #ifndef _GST_BASE_VIDEO_DECODER_H_ #define _GST_BASE_VIDEO_DECODER_H_ +#ifndef GST_USE_UNSTABLE_API +#warning "GstBaseVideoDecoder is unstable API and may change in future." +#warning "You can define GST_USE_UNSTABLE_API to avoid this warning." +#endif + #include <gst/video/gstbasevideocodec.h> G_BEGIN_DECLS diff --git a/gst-libs/gst/video/gstbasevideoencoder.h b/gst-libs/gst/video/gstbasevideoencoder.h index a3b6e3d..7b9f23b 100644 --- a/gst-libs/gst/video/gstbasevideoencoder.h +++ b/gst-libs/gst/video/gstbasevideoencoder.h @@ -20,6 +20,11 @@ #ifndef _GST_BASE_VIDEO_ENCODER_H_ #define _GST_BASE_VIDEO_ENCODER_H_ +#ifndef GST_USE_UNSTABLE_API +#warning "GstBaseVideoEncoder is unstable API and may change in future." +#warning "You can define GST_USE_UNSTABLE_API to avoid this warning." +#endif + #include <gst/video/gstbasevideocodec.h> #include <gst/video/gstbasevideoutils.h> diff --git a/gst-libs/gst/video/gstbasevideoparse.h b/gst-libs/gst/video/gstbasevideoparse.h index ce69fe5..cdbcd27 100644 --- a/gst-libs/gst/video/gstbasevideoparse.h +++ b/gst-libs/gst/video/gstbasevideoparse.h @@ -20,6 +20,11 @@ #ifndef _GST_BASE_VIDEO_PARSE_H_ #define _GST_BASE_VIDEO_PARSE_H_ +#ifndef GST_USE_UNSTABLE_API +#warning "GstBaseVideoParse is unstable API and may change in future." +#warning "You can define GST_USE_UNSTABLE_API to avoid this warning." +#endif + #include <gst/video/gstbasevideocodec.h> #include <gst/video/gstbasevideoutils.h> diff --git a/gst-libs/gst/video/gstbasevideoutils.h b/gst-libs/gst/video/gstbasevideoutils.h index b259fc3..e832fe7 100644 --- a/gst-libs/gst/video/gstbasevideoutils.h +++ b/gst-libs/gst/video/gstbasevideoutils.h @@ -20,6 +20,11 @@ #ifndef _GST_BASE_VIDEO_UTILS_H_ #define _GST_BASE_VIDEO_UTILS_H_ +#ifndef GST_USE_UNSTABLE_API +#warning "The base video utils API is unstable and may change in future." +#warning "You can define GST_USE_UNSTABLE_API to avoid this warning." +#endif + #include <gst/gst.h> #include <gst/video/video.h> #include <gst/base/gstadapter.h> |