basecamerabinsrc: silence g-ir-scanner warnings
authorTim-Philipp Müller <tim@centricular.com>
Tue, 28 Jul 2020 10:43:47 +0000 (11:43 +0100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 29 Jul 2020 15:08:48 +0000 (15:08 +0000)
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1475>

gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h
gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h
gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h

index 105530b..9318c01 100644 (file)
@@ -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);
index 6d075f5..bba15c0 100644 (file)
@@ -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);
index f66a9b7..a0f3c0f 100644 (file)
@@ -30,6 +30,9 @@
 #include <gst/gst.h>
 #include "basecamerabinsrc-prelude.h"
 
+/**
+ * GstCameraBinPreviewPipelineData: (skip)
+ */
 typedef struct
 {
   GstElement *pipeline;