[gegl] introspection: Make gegl_module_register not show up in .gir



commit 4322ba60eb39abd918da0d69e91a1a10467e1317
Author: Jon Nordby <jononor gmail com>
Date:   Wed Sep 14 23:54:56 2011 +0200

    introspection: Make gegl_module_register not show up in .gir
    
    Causes build problems with vala, as Glib.TypeInfo and TypeFlags
    are not exposed.
    Currently removes introspection for everything in gegl-module
    and gegl-plugin. Enabling operations to be written in other languages
    than C is a secondary goal.

 gegl/Makefile.am         |    6 ++++--
 gegl/module/geglmodule.c |   12 ++++++++++++
 2 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/gegl/Makefile.am b/gegl/Makefile.am
index c3eca5a..3d3605f 100644
--- a/gegl/Makefile.am
+++ b/gegl/Makefile.am
@@ -42,7 +42,6 @@ GEGL_introspectable_headers =	\
     gegl-utils.h			\
     gegl-matrix.h			\
     gegl-lookup.h			\
-    gegl-plugin.h			\
     gegl-version.h			\
     buffer/gegl-buffer.h		\
     buffer/gegl-buffer-iterator.h	\
@@ -57,8 +56,10 @@ GEGL_introspectable_headers =	\
 
 GEGL_public_HEADERS = \
 	$(GEGL_introspectable_headers) \
+    gegl-plugin.h			\
     gegl-chant.h
 
+
 GEGL_introspectable_sources = \
 	gegl-c.c			\
 	gegl-config.c			\
@@ -81,7 +82,6 @@ GEGL_introspectable_sources = \
 	gegl-dot-visitor.h		\
 	gegl-init.h			\
 	gegl-instrument.h		\
-	gegl-module.h			\
 	gegl-plugin.h			\
 	gegl-types-internal.h		\
 	gegl-xml.h \
@@ -89,8 +89,10 @@ GEGL_introspectable_sources = \
 
 GEGL_sources = \
 	$(GEGL_introspectable_sources) \
+	gegl-module.h			\
 	gegl-chant.h
 
+
 lib_LTLIBRARIES = libgegl- GEGL_API_VERSION@.la
 
 libgegl_ GEGL_API_VERSION@_la_SOURCES = $(GEGL_sources) $(GEGL_public_HEADERS)
diff --git a/gegl/module/geglmodule.c b/gegl/module/geglmodule.c
index 5e7ce3b..e326cf8 100644
--- a/gegl/module/geglmodule.c
+++ b/gegl/module/geglmodule.c
@@ -479,6 +479,18 @@ gegl_module_info_free (GeglModuleInfo *info)
   g_slice_free (GeglModuleInfo, info);
 }
 
+/**
+ * gegl_module_register_type: (skip)
+ * @module:
+ * @parent_type:
+ * @type_name:
+ * @type_info:
+ * @flags
+ *
+ * Register a type, checking if another plugin has registered it before.
+ *
+ * Return value: The created GType
+ **/
 GType
 gegl_module_register_type (GTypeModule     *module,
                            GType            parent_type,



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