Function

GObjecttype_add_class_cache_func

Declaration [src]

void
g_type_add_class_cache_func (
  gpointer cache_data,
  GTypeClassCacheFunc cache_func
)

Description [src]

Adds a GTypeClassCacheFunc to be called before the reference count of a class goes from one to zero. This can be used to prevent premature class destruction. All installed GTypeClassCacheFunc functions will be chained until one of them returns TRUE. The functions have to check the class id passed in to figure whether they actually want to cache the class of this type, since all classes are routed through the same GTypeClassCacheFunc chain.

Parameters

cache_data gpointer
 

Data to be passed to cache_func.

cache_func GTypeClassCacheFunc
 

A GTypeClassCacheFunc.