[gegl] gegl: Add gegl_operation_get_name()



commit 20ead2e59176c781f73cb95c35d025d1340ae9b7
Author: Martin Nordholts <martinn src gnome org>
Date:   Wed May 27 18:43:21 2009 +0200

    gegl: Add gegl_operation_get_name()
---
 gegl/operation/gegl-operation.c |   11 +++++++++++
 gegl/operation/gegl-operation.h |    2 ++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/gegl/operation/gegl-operation.c b/gegl/operation/gegl-operation.c
index b8e5b7b..8df8e70 100644
--- a/gegl/operation/gegl-operation.c
+++ b/gegl/operation/gegl-operation.c
@@ -418,6 +418,17 @@ gegl_operation_get_format (GeglOperation *self,
   return pad->format;
 }
 
+const gchar *
+gegl_operation_get_name (GeglOperation *operation)
+{
+  GeglOperationClass *klass;
+
+  g_return_val_if_fail (GEGL_IS_OPERATION (operation), NULL);
+
+  klass = GEGL_OPERATION_GET_CLASS (operation);
+
+  return klass->name;
+}
 
 void
 gegl_operation_invalidate (GeglOperation       *operation,
diff --git a/gegl/operation/gegl-operation.h b/gegl/operation/gegl-operation.h
index 7f0c665..9d781e7 100644
--- a/gegl/operation/gegl-operation.h
+++ b/gegl/operation/gegl-operation.h
@@ -206,6 +206,8 @@ void            gegl_operation_set_format    (GeglOperation *operation,
 const Babl *    gegl_operation_get_format    (GeglOperation *operation,
                                               const gchar   *pad_name);
 
+const gchar *   gegl_operation_get_name      (GeglOperation *operation);
+
 
 /* retrieves the node providing data to a named input pad */
 GeglNode      * gegl_operation_get_source_node (GeglOperation *operation,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]