gegl r2738 - in trunk: . gegl/buffer
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2738 - in trunk: . gegl/buffer
- Date: Thu, 13 Nov 2008 23:17:40 +0000 (UTC)
Author: ok
Date: Thu Nov 13 23:17:39 2008
New Revision: 2738
URL: http://svn.gnome.org/viewvc/gegl?rev=2738&view=rev
Log:
* gegl/buffer/gegl-tile-source.[ch]: made gegl_tile_source_command be
a macro instead of a function.
Modified:
trunk/ChangeLog
trunk/gegl/buffer/gegl-tile-source.c
trunk/gegl/buffer/gegl-tile-source.h
Modified: trunk/gegl/buffer/gegl-tile-source.c
==============================================================================
--- trunk/gegl/buffer/gegl-tile-source.c (original)
+++ trunk/gegl/buffer/gegl-tile-source.c Thu Nov 13 23:17:39 2008
@@ -43,18 +43,3 @@
gegl_tile_source_init (GeglTileSource *self)
{
}
-
-gpointer
-gegl_tile_source_command (GeglTileSource *gegl_tile_source,
- GeglTileCommand command,
- gint x,
- gint y,
- gint z,
- gpointer data)
-{
- GeglTileSourceClass *klass;
-
- klass = GEGL_TILE_SOURCE_GET_CLASS (gegl_tile_source);
-
- return klass->command (gegl_tile_source, command, x, y, z, data);
-}
Modified: trunk/gegl/buffer/gegl-tile-source.h
==============================================================================
--- trunk/gegl/buffer/gegl-tile-source.h (original)
+++ trunk/gegl/buffer/gegl-tile-source.h Thu Nov 13 23:17:39 2008
@@ -54,12 +54,14 @@
GType gegl_tile_source_get_type (void) G_GNUC_CONST;
+#if 0
gpointer gegl_tile_source_command (GeglTileSource *tile_source,
GeglTileCommand command,
gint x,
gint y,
gint z,
gpointer data);
+#endif
@@ -187,6 +189,10 @@
#endif
+#define gegl_tile_source_command(source,cmd,x,y,z,tile)\
+(GEGL_TILE_SOURCE_GET_CLASS(source)->command(source,cmd,x,y,z,tile))
+
+
#define gegl_tile_source_set_tile(source,x,y,z,tile) \
(gboolean)gegl_tile_source_command(source,GEGL_TILE_SET,x,y,z,tile)
#define gegl_tile_source_get_tile(source,x,y,z) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]