mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02:00
Add g_type_module_register_enum() and g_type_module_register_flags().
Tue Jul 6 00:54:38 2004 Matthias Clasen <maclas@gmx.de> * gobject/gobject-sections.txt: * gobject/tmpl/gtypemodule.sgml: Add g_type_module_register_enum() and g_type_module_register_flags().
This commit is contained in:
committed by
Matthias Clasen
parent
b3b1c3b3eb
commit
8414d97c5b
@@ -185,6 +185,8 @@ g_type_module_unuse
|
||||
g_type_module_set_name
|
||||
g_type_module_register_type
|
||||
g_type_module_add_interface
|
||||
g_type_module_register_enum
|
||||
g_type_module_register_flags
|
||||
<SUBSECTION Standard>
|
||||
G_TYPE_MODULE
|
||||
G_IS_TYPE_MODULE
|
||||
|
@@ -145,3 +145,42 @@ not be unloaded.
|
||||
@interface_info: type information structure
|
||||
|
||||
|
||||
<!-- ##### FUNCTION g_type_module_register_enum ##### -->
|
||||
<para>
|
||||
Looks up or registers an enumeration that is implemented with a particular
|
||||
type plugin. If a type with name @type_name was previously registered,
|
||||
the #GType identifier for the type is returned, otherwise the type
|
||||
is newly registered, and the resulting #GType identifier returned.
|
||||
</para>
|
||||
<para>
|
||||
As long as any instances of the type exist, the type plugin will
|
||||
not be unloaded.
|
||||
</para>
|
||||
|
||||
@module: a #GTypeModule
|
||||
@name: name for the type
|
||||
@const_static_values: an array of #GEnumValue structs for the possible
|
||||
enumeration values. The array is terminated by a struct with all
|
||||
members being 0.
|
||||
@Returns: the new or existing type ID
|
||||
@Since: 2.6
|
||||
|
||||
<!-- ##### FUNCTION g_type_module_register_flags ##### -->
|
||||
<para>
|
||||
Looks up or registers a flags type that is implemented with a particular
|
||||
type plugin. If a type with name @type_name was previously registered,
|
||||
the #GType identifier for the type is returned, otherwise the type
|
||||
is newly registered, and the resulting #GType identifier returned.
|
||||
</para>
|
||||
<para>
|
||||
As long as any instances of the type exist, the type plugin will
|
||||
not be unloaded.
|
||||
</para>
|
||||
|
||||
@module: a #GTypeModule
|
||||
@name: name for the type
|
||||
@const_static_values: an array of #GFlagsValue structs for the possible
|
||||
flags values. The array is terminated by a struct with all
|
||||
members being 0.
|
||||
@Returns: the new or existing type ID
|
||||
@Since: 2.6
|
||||
|
Reference in New Issue
Block a user