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.
This commit is contained in:
Tim-Philipp Müller 2011-04-14 16:14:57 +01:00
parent 860adf7585
commit c9ef416fa7
3 changed files with 15 additions and 0 deletions

View file

@ -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 <gst/gst.h>
#include <gst/gstbin.h>
#include <gst/interfaces/photography.h>

View file

@ -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 <gst/gst.h>
G_BEGIN_DECLS

View file

@ -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 <gst/gst.h>
typedef struct