TypeClassCacheFunc
Description:
[ CCode ( has_target = false ) ]
public delegate void TypeClassCacheFunc (void* cache_data, TypeClass g_class)
public delegate void TypeClassCacheFunc (void* cache_data, TypeClass g_class)
A callback function which is called when the reference count of a class drops to zero.
It may use class_ref to prevent the class from being freed. You should not
call g_type_class_unref
from a TypeClassCacheFunc function to prevent infinite recursion, use
g_type_class_unref_uncached
instead.
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 TypeClassCacheFunc chain.
Parameters:
cache_data |
data that was given to the |
g_class |
The TypeClass structure which is unreferenced |
Returns:
true to stop further TypeClassCacheFuncs from being called, false to continue |
Namespace: GLib
Package: gobject-2.0