mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
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
3 changed files with 15 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue