Function

GObjecttype_register_fundamental

Declaration [src]

GType
g_type_register_fundamental (
  GType type_id,
  const gchar* type_name,
  const GTypeInfo* info,
  const GTypeFundamentalInfo* finfo,
  GTypeFlags flags
)

Description [src]

Registers type_id as the predefined identifier and type_name as the name of a fundamental type. If type_id is already registered, or a type named type_name is already registered, the behaviour is undefined. The type system uses the information contained in the GTypeInfo structure pointed to by info and the GTypeFundamentalInfo structure pointed to by finfo to manage the type and its instances. The value of flags determines additional characteristics of the fundamental type.

Parameters

type_id GType
 

A predefined type identifier.

type_name const gchar*
 

0-terminated string used as the name of the new type.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
info GTypeInfo
 

GTypeInfo structure for this type.

 The data is owned by the caller of the function.
finfo GTypeFundamentalInfo
 

GTypeFundamentalInfo structure for this type.

 The data is owned by the caller of the function.
flags GTypeFlags
 

Bitwise combination of GTypeFlags values.

Return value

Returns: GType
 

The predefined type identifier.