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:
parent
860adf7585
commit
c9ef416fa7
@ -22,6 +22,11 @@
|
|||||||
#ifndef __GST_BASE_CAMERA_SRC_H__
|
#ifndef __GST_BASE_CAMERA_SRC_H__
|
||||||
#define __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/gst.h>
|
||||||
#include <gst/gstbin.h>
|
#include <gst/gstbin.h>
|
||||||
#include <gst/interfaces/photography.h>
|
#include <gst/interfaces/photography.h>
|
||||||
|
@ -21,6 +21,11 @@
|
|||||||
#ifndef __GST_CAMERABIN_ENUM_H__
|
#ifndef __GST_CAMERABIN_ENUM_H__
|
||||||
#define __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>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
@ -22,6 +22,11 @@
|
|||||||
#ifndef __CAMERABIN_PREVIEW_H_
|
#ifndef __CAMERABIN_PREVIEW_H_
|
||||||
#define __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>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
Loading…
x
Reference in New Issue
Block a user