gegl r2761 - in trunk: . gegl/graph
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2761 - in trunk: . gegl/graph
- Date: Sun, 16 Nov 2008 15:05:40 +0000 (UTC)
Author: ok
Date: Sun Nov 16 15:05:40 2008
New Revision: 2761
URL: http://svn.gnome.org/viewvc/gegl?rev=2761&view=rev
Log:
* gegl/graph/gegl-visitor.[ch]: (gegl_visitor_reset): added method
to make a visitor ready for reuse.
Modified:
trunk/ChangeLog
trunk/gegl/graph/gegl-visitor.c
trunk/gegl/graph/gegl-visitor.h
Modified: trunk/gegl/graph/gegl-visitor.c
==============================================================================
--- trunk/gegl/graph/gegl-visitor.c (original)
+++ trunk/gegl/graph/gegl-visitor.c Sun Nov 16 15:05:40 2008
@@ -181,6 +181,16 @@
return g_hash_table_lookup (self->hash, visitable);
}
+void gegl_visitor_reset (GeglVisitor *self)
+{
+ if (self->visits_list)
+ {
+ g_slist_free (self->visits_list);
+ self->visits_list = NULL;
+ }
+ g_hash_table_remove_all (self->hash);
+}
+
static void
insert (GeglVisitor *self,
GeglVisitable *visitable)
Modified: trunk/gegl/graph/gegl-visitor.h
==============================================================================
--- trunk/gegl/graph/gegl-visitor.h (original)
+++ trunk/gegl/graph/gegl-visitor.h Sun Nov 16 15:05:40 2008
@@ -55,6 +55,7 @@
GType gegl_visitor_get_type (void) G_GNUC_CONST;
GSList * gegl_visitor_get_visits_list (GeglVisitor *self);
+void gegl_visitor_reset (GeglVisitor *self);
void gegl_visitor_visit_visitable (GeglVisitor *self,
GeglVisitable *visitable);
void gegl_visitor_visit_pad (GeglVisitor *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]