[gegl] gegl: Add gegl_dot_node_to_png_default()
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gegl] gegl: Add gegl_dot_node_to_png_default()
- Date: Tue, 26 May 2009 16:26:03 -0400 (EDT)
commit 8734a137f91f0be92910f295b4c104e4ba799bf2
Author: Martin Nordholts <martinn src gnome org>
Date: Tue May 26 22:06:58 2009 +0200
gegl: Add gegl_dot_node_to_png_default()
Add gegl_dot_node_to_png_default() which simply calls
gegl_dot_node_to_png() with `png_path' set to "/tmp/node.png". A nice
convenience when debugging using a command line interface.
---
gegl/gegl-dot.c | 12 ++++++++++++
gegl/gegl-dot.h | 1 +
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/gegl/gegl-dot.c b/gegl/gegl-dot.c
index bb17b31..75e897c 100644
--- a/gegl/gegl-dot.c
+++ b/gegl/gegl-dot.c
@@ -310,6 +310,18 @@ gegl_to_dot (GeglNode *node)
}
/**
+ * gegl_dot_node_to_png_default:
+ * @node:
+ *
+ * Calls gegl_dot_node_to_png() with `png_path' set to "/tmp/node.png".
+ **/
+void
+gegl_dot_node_to_png_default (GeglNode *node)
+{
+ gegl_dot_node_to_png (node, "/tmp/node.png");
+}
+
+/**
* gegl_dot_node_to_png:
* @node: Node to depict graph for.
* @png_path: Path of the png to write.
diff --git a/gegl/gegl-dot.h b/gegl/gegl-dot.h
index 49780ab..040dde6 100644
--- a/gegl/gegl-dot.h
+++ b/gegl/gegl-dot.h
@@ -31,6 +31,7 @@ void gegl_dot_util_add_connection (GString *string,
GeglConnection *connection);
void gegl_dot_node_to_png (GeglNode *node,
const gchar *png_path);
+void gegl_dot_node_to_png_default (GeglNode *node);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]