gegl r1994 - in trunk: . gegl
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r1994 - in trunk: . gegl
- Date: Sun, 10 Feb 2008 21:45:14 +0000 (GMT)
Author: ok
Date: Sun Feb 10 21:45:14 2008
New Revision: 1994
URL: http://svn.gnome.org/viewvc/gegl?rev=1994&view=rev
Log:
* gegl/gegl-chant.h: renamed dummy_filler to chant_data, this means
that operations implemented with the chanting framework has access
to a location to store a reference to data in the form of a user
struct that is created on demand and properly cleaned up in finalize.
The pointer should be accesed like the chanted properties like:
o->chant_data.
Modified:
trunk/ChangeLog
trunk/gegl/gegl-chant.h
Modified: trunk/gegl/gegl-chant.h
==============================================================================
--- trunk/gegl/gegl-chant.h (original)
+++ trunk/gegl/gegl-chant.h Sun Feb 10 21:45:14 2008
@@ -271,8 +271,11 @@
struct _GeglChantO
{
- gpointer dummy_filler; /* to avoid empty struct, can be done a bit more cleverly to
- avoid adding it when there is actual properties*/
+ gpointer chant_data; /* Unused by the chanting framework can be used by operations
+ * for storage of a private struct, (remember to clean up
+ * in finalize). Also serves as a filler making sure that we
+ * do not create an empty struct if there are no chanted properties.
+ */
#define gegl_chant_int(name, nick, min, max, def, blurb) gint name;
#define gegl_chant_double(name, nick, min, max, def, blurb) gdouble name;
#define gegl_chant_boolean(name, nick, def, blurb) gboolean name;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]