Fix the declarations of the new functions to return GType, not void. Also
authorMatthias Clasen <maclas@gmx.de>
Tue, 6 Jul 2004 14:13:24 +0000 (14:13 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 6 Jul 2004 14:13:24 +0000 (14:13 +0000)
Tue Jul  6 00:46:43 2004  Matthias Clasen  <maclas@gmx.de>

* gtypemodule.h:
* gtypemodule.c: Fix the declarations of the new
functions to return GType, not void.
Also add missing includes.  (#145508, Morten Welinder)

gobject/ChangeLog
gobject/gtypemodule.c
gobject/gtypemodule.h

index 5d912c4..fbc3b66 100644 (file)
@@ -1,6 +1,13 @@
 Tue Jul  6 00:46:43 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtypemodule.h: 
+       * gtypemodule.c: Fix the declarations of the new 
+       functions to return GType, not void. 
+       Also add missing includes.  (#145508, Morten Welinder)
+
+Tue Jul  6 00:46:43 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtypemodule.h: 
        * gtypemodule.c (g_type_module_register_flags): 
        * gtypemodule.c (g_type_module_register_enum): New 
        functions to register enum and flags types from a 
index bb3df5b..0c917c0 100644 (file)
@@ -388,7 +388,7 @@ g_type_module_add_interface (GTypeModule          *module,
   module_interface_info->info = *interface_info;
 }
 
-void
+GType
 g_type_module_register_enum (GTypeModule      *module,
                              const gchar      *name,
                              const GEnumValue *const_static_values)
@@ -406,7 +406,7 @@ g_type_module_register_enum (GTypeModule      *module,
                                       G_TYPE_ENUM, name, &enum_type_info, 0);
 }
 
-void
+GType
 g_type_module_register_flags (GTypeModule      *module,
                              const gchar       *name,
                              const GFlagsValue *const_static_values)
index 863ea15..ad2c642 100644 (file)
@@ -24,6 +24,7 @@
 #define __G_TYPE_MODULE_H__
 
 #include <gobject/gobject.h>
+#include <gobject/genums.h>
 
 G_BEGIN_DECLS
 
@@ -79,10 +80,10 @@ void     g_type_module_add_interface  (GTypeModule          *module,
                                        GType                 instance_type,
                                        GType                 interface_type,
                                        const GInterfaceInfo *interface_info);
-void     g_type_module_register_enum  (GTypeModule          *module,
+GType    g_type_module_register_enum  (GTypeModule          *module,
                                        const gchar          *name,
                                        const GEnumValue     *const_static_values);
-void     g_type_module_register_flags (GTypeModule          *module,
+GType    g_type_module_register_flags (GTypeModule          *module,
                                        const gchar          *name,
                                        const GFlagsValue    *const_static_values);