/* Returns: (type GObject.TypeClass) (transfer none): the #GTypeClass structure for the given type ID or NULL if the class does not currently exist  */
gpointer g_type_class_peek(GType type)
/* Returns: (type GObject.TypeClass) (transfer none): the #GTypeClass structure for the given type ID or NULL if the class does not currently exist  */
gpointer g_type_class_peek(GType type)
{
  TypeNode *node;
  gpointer class;
  node = lookup_type_node_I (type);
  if (node && node->is_classed && NODE_REFCOUNT (node) &&
      g_atomic_int_get (&node->data->class.init_state) == INITIALIZED)
    class = node->data->class.class;
  else
    class = NULL;
  return class;
}