Fix the declarations of the new functions to return GType, not void. Also

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)
This commit is contained in:
Matthias Clasen 2004-07-06 14:13:24 +00:00 committed by Matthias Clasen
parent 8414d97c5b
commit a41b04a301
3 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,10 @@
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:

View 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)

View 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);