[gegl] buffer: clean up public gegl-buffer-backend.h header



commit 187219d311075b3a8fe5d0e05e909e28299dff0b
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jun 26 12:33:06 2012 +0200

    buffer: clean up public gegl-buffer-backend.h header

 gegl/buffer/gegl-buffer-backend.h |   29 ++++++++++++++++++++++-------
 gegl/buffer/gegl-tile-backend.h   |    3 +++
 gegl/buffer/gegl-tile-source.h    |   21 +--------------------
 3 files changed, 26 insertions(+), 27 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-backend.h b/gegl/buffer/gegl-buffer-backend.h
index 4d8320e..1cb6f12 100644
--- a/gegl/buffer/gegl-buffer-backend.h
+++ b/gegl/buffer/gegl-buffer-backend.h
@@ -1,5 +1,4 @@
 /* This file is part of GEGL.
- * ck
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -20,19 +19,35 @@
 #ifndef __GEGL_BUFFER_BACKEND_H__
 #define __GEGL_BUFFER_BACKEND_H__
 
-typedef struct _GeglTileSource            GeglTileSource;
-typedef struct _GeglTileSourceClass       GeglTileSourceClass;
-
-typedef struct _GeglTileBackend           GeglTileBackend;
-typedef struct _GeglTileBackendClass      GeglTileBackendClass;
-typedef struct _GeglTileBackendPrivate    GeglTileBackendPrivate;
+G_BEGIN_DECLS
 
 typedef struct _GeglTile                  GeglTile;
+typedef struct _GeglTileSource            GeglTileSource;
+typedef struct _GeglTileBackend           GeglTileBackend;
 
 
 typedef void   (*GeglTileCallback)       (GeglTile *tile,
                                           gpointer user_data);
 
+/* All commands have the ability to pass commands to all tiles the handlers
+ * add abstraction to the commands the documentaiton given here is valid
+ * when the commands are issued to a full blown GeglBuffer instance.
+ */
+typedef enum
+{
+  GEGL_TILE_IDLE = 0,
+  GEGL_TILE_SET,
+  GEGL_TILE_GET,
+  GEGL_TILE_IS_CACHED,
+  GEGL_TILE_EXIST,
+  GEGL_TILE_VOID,
+  GEGL_TILE_FLUSH,
+  GEGL_TILE_REFETCH,
+  GEGL_TILE_REINIT,
+  GEGL_TILE_LAST_COMMAND
+} GeglTileCommand;
+
+G_END_DECLS
 
 #include "gegl-types.h"
 #include "gegl-tile-backend.h"
diff --git a/gegl/buffer/gegl-tile-backend.h b/gegl/buffer/gegl-tile-backend.h
index bee433a..d3d38b7 100644
--- a/gegl/buffer/gegl-tile-backend.h
+++ b/gegl/buffer/gegl-tile-backend.h
@@ -35,6 +35,9 @@ G_BEGIN_DECLS
 #define GEGL_IS_TILE_BACKEND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),  GEGL_TYPE_TILE_BACKEND))
 #define GEGL_TILE_BACKEND_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),  GEGL_TYPE_TILE_BACKEND, GeglTileBackendClass))
 
+typedef struct _GeglTileBackendClass   GeglTileBackendClass;
+typedef struct _GeglTileBackendPrivate GeglTileBackendPrivate;
+
 struct _GeglTileBackend
 {
   GeglTileSource          parent_instance;
diff --git a/gegl/buffer/gegl-tile-source.h b/gegl/buffer/gegl-tile-source.h
index 9c69d3d..6bf5028 100644
--- a/gegl/buffer/gegl-tile-source.h
+++ b/gegl/buffer/gegl-tile-source.h
@@ -38,7 +38,7 @@ G_BEGIN_DECLS
 #define GEGL_IS_TILE_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),  GEGL_TYPE_TILE_SOURCE))
 #define GEGL_TILE_SOURCE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),  GEGL_TYPE_TILE_SOURCE, GeglTileSourceClass))
 
-typedef gint GeglTileCommand;
+typedef struct _GeglTileSourceClass GeglTileSourceClass;
 
 struct _GeglTileSource
 {
@@ -60,25 +60,6 @@ struct _GeglTileSourceClass
 
 GType      gegl_tile_source_get_type (void) G_GNUC_CONST;
 
-/* All commands have the ability to pass commands to all tiles the handlers
- * add abstraction to the commands the documentaiton given here is valid
- * when the commands are issued to a full blown GeglBuffer instance.
- */
-
-enum _GeglTileCommand
-{
-  GEGL_TILE_IDLE = 0,
-  GEGL_TILE_SET,
-  GEGL_TILE_GET,
-  GEGL_TILE_IS_CACHED,
-  GEGL_TILE_EXIST,
-  GEGL_TILE_VOID,
-  GEGL_TILE_FLUSH,
-  GEGL_TILE_REFETCH,
-  GEGL_TILE_REINIT,
-  GEGL_TILE_LAST_COMMAND
-};
-
 #ifdef NOT_REALLY_COS_THIS_IS_MACROS
 /* The functions documented below are actually macros, all using the command vfunc */
 



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