From 6a763f6a471e9fbbd86358b0175498a6af78666e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 3 Jul 2009 16:08:38 +0100 Subject: [PATCH] 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 deletion(-) diff --git a/ext/schroedinger/Makefile.am b/ext/schroedinger/Makefile.am index 23869243ac..6a895c5104 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 2b7263b2b2..6836a058fe 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 f4a1cf95b7..b6acf62ee6 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 #include diff --git a/gst-libs/gst/video/gstbasevideodecoder.h b/gst-libs/gst/video/gstbasevideodecoder.h index 5e734a2aa5..1daf728ca8 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 G_BEGIN_DECLS diff --git a/gst-libs/gst/video/gstbasevideoencoder.h b/gst-libs/gst/video/gstbasevideoencoder.h index a3b6e3d753..7b9f23b422 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 #include diff --git a/gst-libs/gst/video/gstbasevideoparse.h b/gst-libs/gst/video/gstbasevideoparse.h index ce69fe5195..cdbcd27a43 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 #include diff --git a/gst-libs/gst/video/gstbasevideoutils.h b/gst-libs/gst/video/gstbasevideoutils.h index b259fc3e18..e832fe76da 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 #include #include