Commit 187219d3 authored by Michael Natterer's avatar Michael Natterer 😴

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

parent a7ac2035
/* 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"
......
......@@ -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;
......
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment