Function

GObjectTypeClasspeek

Declaration [src]

GObjectTypeClass*
g_type_class_peek (
  GType type
)

Description [src]

Retrieves the class for a give type.

This function is essentially the same as g_type_class_get(), except that the class may have not been instantiated yet.

As a consequence, this function may return NULL if the class of the type passed in does not currently exist (hasn’t been referenced before).

Parameters

type

Type: GType

Type ID of a classed type.

Return value

Type: GTypeClass

The GTypeClass structure for the given type ID or NULL if the class does not currently exist.

The data is owned by the called function.
The return value can be NULL.