[gegl] gegl: expose gegl_node_is_graph
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl: expose gegl_node_is_graph
- Date: Tue, 22 Jan 2019 02:00:29 +0000 (UTC)
commit 207c2a4223170ee69247e8ae07cb3938855792a4
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Jan 22 02:59:09 2019 +0100
gegl: expose gegl_node_is_graph
gegl/graph/gegl-node.c | 8 ++++++++
gegl/graph/gegl-node.h | 1 +
2 files changed, 9 insertions(+)
---
diff --git a/gegl/graph/gegl-node.c b/gegl/graph/gegl-node.c
index 58ac8b00b..31d5318a2 100644
--- a/gegl/graph/gegl-node.c
+++ b/gegl/graph/gegl-node.c
@@ -828,6 +828,14 @@ gegl_node_has_source (GeglNode *self,
return found;
}
+gboolean
+gegl_node_is_graph (GeglNode *node)
+{
+ g_return_val_if_fail (node, FALSE);
+ g_return_val_if_fail (GEGL_IS_NODE (node), FALSE);
+ return node->is_graph;
+}
+
gboolean
gegl_node_connect_from (GeglNode *sink,
const gchar *sink_pad_name,
diff --git a/gegl/graph/gegl-node.h b/gegl/graph/gegl-node.h
index fdd803379..6eca2cfb9 100644
--- a/gegl/graph/gegl-node.h
+++ b/gegl/graph/gegl-node.h
@@ -691,6 +691,7 @@ gboolean gegl_node_get_passthrough (GeglNode *node);
void gegl_node_set_passthrough (GeglNode *node,
gboolean passthrough);
+gboolean gegl_node_is_graph (GeglNode *node);
void gegl_node_progress (GeglNode *node, gdouble progress, gchar *message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]