From e3d120d725b56d6367e69d754e383f9e28fbfa77 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 14 Oct 2010 13:41:00 -0300 Subject: [PATCH] photography: Avoid breaking ABI Move the newly added functions/fields to the end of the structs --- gst-libs/gst/interfaces/photography.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gst-libs/gst/interfaces/photography.h b/gst-libs/gst/interfaces/photography.h index 002503b..ca67fbb 100644 --- a/gst-libs/gst/interfaces/photography.h +++ b/gst-libs/gst/interfaces/photography.h @@ -209,7 +209,6 @@ typedef struct GstColourToneMode tone_mode; GstSceneMode scene_mode; GstFlashMode flash_mode; - guint noise_reduction; guint32 exposure; guint aperture; gfloat ev_compensation; @@ -217,6 +216,7 @@ typedef struct gfloat zoom; GstFlickerReductionMode flicker_mode; GstFocusMode focus_mode; + guint noise_reduction; } GstPhotoSettings; /** @@ -280,8 +280,6 @@ typedef struct _GstPhotographyInterface GstSceneMode * scene_mode); gboolean (*get_flash_mode) (GstPhotography * photo, GstFlashMode * flash_mode); - gboolean (*get_noise_reduction) (GstPhotography * photo, - guint * noise_reduction); gboolean (*get_zoom) (GstPhotography * photo, gfloat * zoom); gboolean (*get_flicker_mode) (GstPhotography * photo, GstFlickerReductionMode * flicker_mode); @@ -300,8 +298,6 @@ typedef struct _GstPhotographyInterface GstSceneMode scene_mode); gboolean (*set_flash_mode) (GstPhotography * photo, GstFlashMode flash_mode); - gboolean (*set_noise_reduction) (GstPhotography * photo, - guint noise_reduction); gboolean (*set_zoom) (GstPhotography * photo, gfloat zoom); gboolean (*set_flicker_mode) (GstPhotography * photo, GstFlickerReductionMode flicker_mode); @@ -315,6 +311,11 @@ typedef struct _GstPhotographyInterface gboolean (*set_config) (GstPhotography * photo, GstPhotoSettings * config); gboolean (*get_config) (GstPhotography * photo, GstPhotoSettings * config); + gboolean (*get_noise_reduction) (GstPhotography * photo, + guint * noise_reduction); + gboolean (*set_noise_reduction) (GstPhotography * photo, + guint noise_reduction); + /*< private > */ gpointer _gst_reserved[GST_PADDING]; } GstPhotographyInterface; -- 2.7.4