CacheDupFunc

typealias CacheDupFunc = (<Error class: unknown class>?) -> <Error class: unknown class>?

Specifies the type of the @key_dup_func function passed to g_cache_new(). The function is passed a key (not a value as the prototype implies) and should return a duplicate of the key.

  • param value the #GCache key to destroy (not a #GCache value as it seems)

  • return a copy of the #GCache key