[gegl] operation: pad GeglOperationClass



commit e1ce7eb9124e6fb73bce9ec0ff83e38ef7ecc876
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Fri Mar 23 00:43:22 2012 +0000

    operation: pad GeglOperationClass
    
    The introductin of OpenCL already broke API, pad struct for next release
    combine booleans in a bitfield.

 gegl/operation/gegl-operation.h |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gegl/operation/gegl-operation.h b/gegl/operation/gegl-operation.h
index 542d623..9d46f6e 100644
--- a/gegl/operation/gegl-operation.h
+++ b/gegl/operation/gegl-operation.h
@@ -79,9 +79,9 @@ struct _GeglOperationClass
   const gchar    *description; /* textual description of the operation */
   const gchar    *categories;  /* a colon seperated list of categories */
 
-  gboolean        no_cache;    /* do not create a cache for this operation */
-
-  gboolean        opencl_support;
+  guint           no_cache      :1;  /* do not create a cache for this operation */
+  guint           opencl_support:1;
+  guint64         bit_pad:62;
 
   /* attach this operation with a GeglNode, override this if you are creating a
    * GeglGraph, it is already defined for Filters/Sources/Composers.
@@ -135,13 +135,13 @@ struct _GeglOperationClass
    * output. The node is responsible for delegating blame to one of it's
    * inputs taking into account opacity and similar issues.
    *
-   * XXX: What is GeglNode doing in this part of the API?
-   * Does this recurse?, perhaps we should only point out which pad the
-   * data is coming from?
+   * XXX: What is GeglNode doing in this part of the API?,
+   * perhaps we should only point out which pad the data is coming from?
    */
   GeglNode*     (*detect)                    (GeglOperation       *operation,
                                               gint                 x,
                                               gint                 y);
+  gpointer      pad1[8];
 };
 
 



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