[gegl] add more padding to public structs



commit 0ba4580bc5dcda7346aee5a53d72652b0bd70125
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Fri Mar 23 00:53:56 2012 +0000

    add more padding to public structs

 gegl/buffer/gegl-tile-backend.h                 |    6 +-----
 gegl/buffer/gegl-tile-source.h                  |   10 ++--------
 gegl/operation/gegl-operation-area-filter.h     |    1 +
 gegl/operation/gegl-operation-composer.h        |    1 +
 gegl/operation/gegl-operation-composer3.h       |    1 +
 gegl/operation/gegl-operation-filter.h          |    1 +
 gegl/operation/gegl-operation-meta.h            |    1 +
 gegl/operation/gegl-operation-point-composer.h  |    1 +
 gegl/operation/gegl-operation-point-composer3.h |    1 +
 gegl/operation/gegl-operation-point-filter.h    |    1 +
 gegl/operation/gegl-operation-point-render.h    |    1 +
 gegl/operation/gegl-operation-sink.h            |    3 ++-
 gegl/operation/gegl-operation-source.h          |    3 ++-
 gegl/operation/gegl-operation-temporal.h        |    1 +
 gegl/operation/gegl-operation.h                 |    2 +-
 15 files changed, 18 insertions(+), 16 deletions(-)
---
diff --git a/gegl/buffer/gegl-tile-backend.h b/gegl/buffer/gegl-tile-backend.h
index 2e34884..bee433a 100644
--- a/gegl/buffer/gegl-tile-backend.h
+++ b/gegl/buffer/gegl-tile-backend.h
@@ -44,11 +44,7 @@ struct _GeglTileBackend
 struct _GeglTileBackendClass
 {
   GeglTileSourceClass parent_class;
-
-  gpointer  padding1;
-  gpointer  padding2;
-  gpointer  padding3;
-  gpointer  padding4;
+  gpointer            padding[4];
 };
 
 gint        gegl_tile_backend_get_tile_size (GeglTileBackend *tile_backend);
diff --git a/gegl/buffer/gegl-tile-source.h b/gegl/buffer/gegl-tile-source.h
index 4152e52..9c69d3d 100644
--- a/gegl/buffer/gegl-tile-source.h
+++ b/gegl/buffer/gegl-tile-source.h
@@ -49,19 +49,13 @@ struct _GeglTileSource
                          gint             y,
                          gint             z,
                          gpointer         data);
-  gpointer  padding1;
-  gpointer  padding2;
-  gpointer  padding3;
-  gpointer  padding4;
+  gpointer  padding[4];
 };
 
 struct _GeglTileSourceClass
 {
   GObjectClass  parent_class;
-  gpointer  padding1;
-  gpointer  padding2;
-  gpointer  padding3;
-  gpointer  padding4;
+  gpointer      padding[4];
 };
 
 GType      gegl_tile_source_get_type (void) G_GNUC_CONST;
diff --git a/gegl/operation/gegl-operation-area-filter.h b/gegl/operation/gegl-operation-area-filter.h
index 1411b9c..94b14f2 100644
--- a/gegl/operation/gegl-operation-area-filter.h
+++ b/gegl/operation/gegl-operation-area-filter.h
@@ -51,6 +51,7 @@ typedef struct _GeglOperationAreaFilterClass GeglOperationAreaFilterClass;
 struct _GeglOperationAreaFilterClass
 {
   GeglOperationFilterClass parent_class;
+  gpointer                 pad[4];
 };
 
 GType gegl_operation_area_filter_get_type (void) G_GNUC_CONST;
diff --git a/gegl/operation/gegl-operation-composer.h b/gegl/operation/gegl-operation-composer.h
index 34e8d53..5df284f 100644
--- a/gegl/operation/gegl-operation-composer.h
+++ b/gegl/operation/gegl-operation-composer.h
@@ -51,6 +51,7 @@ struct _GeglOperationComposerClass
                         GeglBuffer          *aux,
                         GeglBuffer          *output,
                         const GeglRectangle *result);
+  gpointer              pad[4];
 };
 
 GType gegl_operation_composer_get_type (void) G_GNUC_CONST;
diff --git a/gegl/operation/gegl-operation-composer3.h b/gegl/operation/gegl-operation-composer3.h
index c27483b..6724a56 100644
--- a/gegl/operation/gegl-operation-composer3.h
+++ b/gegl/operation/gegl-operation-composer3.h
@@ -47,6 +47,7 @@ struct _GeglOperationComposer3Class
                         GeglBuffer          *aux2,
                         GeglBuffer          *output,
                         const GeglRectangle *result);
+  gpointer              pad[4];
 };
 
 GType gegl_operation_composer3_get_type (void) G_GNUC_CONST;
diff --git a/gegl/operation/gegl-operation-filter.h b/gegl/operation/gegl-operation-filter.h
index 207d754..1d51bb7 100644
--- a/gegl/operation/gegl-operation-filter.h
+++ b/gegl/operation/gegl-operation-filter.h
@@ -49,6 +49,7 @@ struct _GeglOperationFilterClass
                         GeglBuffer          *input,
                         GeglBuffer          *output,
                         const GeglRectangle *roi);
+  gpointer              pad[4];
 };
 
 GType gegl_operation_filter_get_type (void) G_GNUC_CONST;
diff --git a/gegl/operation/gegl-operation-meta.h b/gegl/operation/gegl-operation-meta.h
index 2704f87..6eaf6c7 100644
--- a/gegl/operation/gegl-operation-meta.h
+++ b/gegl/operation/gegl-operation-meta.h
@@ -48,6 +48,7 @@ typedef struct _GeglOperationMetaClass GeglOperationMetaClass;
 struct _GeglOperationMetaClass
 {
   GeglOperationClass parent_class;
+  gpointer           pad[4];
 };
 
 
diff --git a/gegl/operation/gegl-operation-point-composer.h b/gegl/operation/gegl-operation-point-composer.h
index cbe47d8..f3d9a2f 100644
--- a/gegl/operation/gegl-operation-point-composer.h
+++ b/gegl/operation/gegl-operation-point-composer.h
@@ -64,6 +64,7 @@ struct _GeglOperationPointComposerClass
                            cl_mem             out_tex,
                            size_t             global_worksize,
                            const GeglRectangle *roi);
+  gpointer                 pad[4];
 };
 
 GType gegl_operation_point_composer_get_type (void) G_GNUC_CONST;
diff --git a/gegl/operation/gegl-operation-point-composer3.h b/gegl/operation/gegl-operation-point-composer3.h
index 5fe5c01..057fdb3 100644
--- a/gegl/operation/gegl-operation-point-composer3.h
+++ b/gegl/operation/gegl-operation-point-composer3.h
@@ -52,6 +52,7 @@ struct _GeglOperationPointComposer3Class
                         const GeglRectangle *roi      /* rectangular region in output buffer */
                         );
 
+  gpointer           pad[4];
 };
 
 GType gegl_operation_point_composer3_get_type (void) G_GNUC_CONST;
diff --git a/gegl/operation/gegl-operation-point-filter.h b/gegl/operation/gegl-operation-point-filter.h
index f42677f..323c5a6 100644
--- a/gegl/operation/gegl-operation-point-filter.h
+++ b/gegl/operation/gegl-operation-point-filter.h
@@ -64,6 +64,7 @@ struct _GeglOperationPointFilterClass
                            cl_mem             out_tex,
                            size_t             global_worksize,
                            const GeglRectangle *roi);
+  gpointer                 pad[4];
 };
 
 GType gegl_operation_point_filter_get_type (void) G_GNUC_CONST;
diff --git a/gegl/operation/gegl-operation-point-render.h b/gegl/operation/gegl-operation-point-render.h
index 90263d6..ba7f79e 100644
--- a/gegl/operation/gegl-operation-point-render.h
+++ b/gegl/operation/gegl-operation-point-render.h
@@ -51,6 +51,7 @@ struct _GeglOperationPointRenderClass
                         void                *out_buf,   /* output buffer     */
                         glong                samples,   /* number of samples */
                         const GeglRectangle *roi);      /* can be used if position is of importance*/
+  gpointer              pad[4];
 };
 
 GType gegl_operation_point_render_get_type (void) G_GNUC_CONST;
diff --git a/gegl/operation/gegl-operation-sink.h b/gegl/operation/gegl-operation-sink.h
index 05b60a9..4441f75 100644
--- a/gegl/operation/gegl-operation-sink.h
+++ b/gegl/operation/gegl-operation-sink.h
@@ -49,11 +49,12 @@ struct _GeglOperationSinkClass
   /* Wether or not the sink operation needs full input data in one go
    * in order to be able to do its processing
    */
-  gboolean           needs_full;
+  gboolean              needs_full;
 
   gboolean (* process) (GeglOperation       *self,
                         GeglBuffer          *input,
                         const GeglRectangle *roi);
+  gpointer              pad[4];
 };
 
 GType    gegl_operation_sink_get_type   (void) G_GNUC_CONST;
diff --git a/gegl/operation/gegl-operation-source.h b/gegl/operation/gegl-operation-source.h
index 1933d9e..75a2c5a 100644
--- a/gegl/operation/gegl-operation-source.h
+++ b/gegl/operation/gegl-operation-source.h
@@ -44,11 +44,12 @@ struct _GeglOperationSource
 typedef struct _GeglOperationSourceClass GeglOperationSourceClass;
 struct _GeglOperationSourceClass
 {
-  GeglOperationClass parent_class;
+  GeglOperationClass    parent_class;
 
   gboolean (* process) (GeglOperation       *self,
                         GeglBuffer          *output,
                         const GeglRectangle *roi);
+  gpointer              pad[4];
 };
 
 GType gegl_operation_source_get_type (void) G_GNUC_CONST;
diff --git a/gegl/operation/gegl-operation-temporal.h b/gegl/operation/gegl-operation-temporal.h
index 3f97519..ef23747 100644
--- a/gegl/operation/gegl-operation-temporal.h
+++ b/gegl/operation/gegl-operation-temporal.h
@@ -52,6 +52,7 @@ struct _GeglOperationTemporalClass
                         GeglBuffer          *input,
                         GeglBuffer          *output,
                         const GeglRectangle *roi);
+  gpointer              pad[4];
 };
 
 GType gegl_operation_temporal_get_type (void) G_GNUC_CONST;
diff --git a/gegl/operation/gegl-operation.h b/gegl/operation/gegl-operation.h
index 9d46f6e..4f157cb 100644
--- a/gegl/operation/gegl-operation.h
+++ b/gegl/operation/gegl-operation.h
@@ -141,7 +141,7 @@ struct _GeglOperationClass
   GeglNode*     (*detect)                    (GeglOperation       *operation,
                                               gint                 x,
                                               gint                 y);
-  gpointer      pad1[8];
+  gpointer      pad[8];
 };
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]