From c9ef416fa7c71b19c615be833190773baebc979e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 14 Apr 2011 16:14:57 +0100 Subject: [PATCH] basecamerasrc: add unstable-API warnings if GST_USE_UNSTABLE_API is not defined So people know this is unstable API even if it ends up right next to our other API. --- gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h | 5 +++++ gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h | 5 +++++ gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h b/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h index c433b6694f..1c412e493f 100644 --- a/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h +++ b/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h @@ -22,6 +22,11 @@ #ifndef __GST_BASE_CAMERA_SRC_H__ #define __GST_BASE_CAMERA_SRC_H__ +#ifndef GST_USE_UNSTABLE_API +#warning "GstBaseCameraSrc is unstable API and may change in future." +#warning "You can define GST_USE_UNSTABLE_API to avoid this warning." +#endif + #include #include #include diff --git a/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h b/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h index 590cb68826..c6dbf043d2 100644 --- a/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h +++ b/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h @@ -21,6 +21,11 @@ #ifndef __GST_CAMERABIN_ENUM_H__ #define __GST_CAMERABIN_ENUM_H__ +#ifndef GST_USE_UNSTABLE_API +#warning "camerabin enums are 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/basecamerabinsrc/gstcamerabinpreview.h b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h index b9df7a26e5..4c8cf21873 100644 --- a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h +++ b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h @@ -22,6 +22,11 @@ #ifndef __CAMERABIN_PREVIEW_H_ #define __CAMERABIN_PREVIEW_H_ +#ifndef GST_USE_UNSTABLE_API +#warning "camera bin preview is unstable API and may change in future." +#warning "You can define GST_USE_UNSTABLE_API to avoid this warning." +#endif + #include typedef struct