From f1c3da15a36b9c2807daa75a9527ac47f420b905 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 28 Jul 2020 11:43:47 +0100 Subject: [PATCH] basecamerabinsrc: silence g-ir-scanner warnings They're legit, but there's lots of other stuff that needs fixing up in this API, so just silence for now and add a FIXME and leave it for some other day. Part-of: --- gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h | 3 +++ gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h | 6 +++++- gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h b/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h index 105530b..9318c01 100644 --- a/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h +++ b/gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h @@ -130,9 +130,12 @@ struct _GstBaseCameraSrcClass }; +/* FIXME: these should be properly namespaced if they're meant as exposed API */ +#ifndef __GI_SCANNER__ #define MIN_ZOOM 1.0f #define MAX_ZOOM 10.0f #define ZOOM_1X MIN_ZOOM +#endif /* !__GI_SCANNER__ */ GST_BASE_CAMERA_BIN_SRC_API gboolean gst_base_camera_src_set_mode (GstBaseCameraSrc *self, GstCameraBinMode mode); diff --git a/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h b/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h index 6d075f5..bba15c0 100644 --- a/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h +++ b/gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h @@ -31,6 +31,8 @@ G_BEGIN_DECLS +/* FIXME: these should be properly namespaced if they're meant as exposed API */ +#ifndef __GI_SCANNER__ #define DEFAULT_WIDTH 640 #define DEFAULT_HEIGHT 480 #define DEFAULT_CAPTURE_WIDTH 800 @@ -38,8 +40,10 @@ G_BEGIN_DECLS #define DEFAULT_FPS_N 0 /* makes it use the default */ #define DEFAULT_FPS_D 1 #define DEFAULT_ZOOM MIN_ZOOM +#endif /* !__GI_SCANNER__ */ +/* FIXME: properly namespace these enums */ /** * GstCameraBinMode: * @MODE_IMAGE: image capture @@ -54,7 +58,7 @@ typedef enum MODE_VIDEO = 2, } GstCameraBinMode; - +/* FIXME: should be CAMERA_BIN_MODE and camera_bin_mode */ #define GST_TYPE_CAMERABIN_MODE (gst_camerabin_mode_get_type ()) GST_BASE_CAMERA_BIN_SRC_API GType gst_camerabin_mode_get_type (void); diff --git a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h index f66a9b7..a0f3c0f 100644 --- a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h +++ b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h @@ -30,6 +30,9 @@ #include #include "basecamerabinsrc-prelude.h" +/** + * GstCameraBinPreviewPipelineData: (skip) + */ typedef struct { GstElement *pipeline; -- 2.7.4