Function
IdeTaskCacheCallback
Declaration
void
(* IdeTaskCacheCallback) (
IdeTaskCache* self,
gconstpointer key,
GTask* task,
gpointer user_data
)
Description
IdeTaskCacheCallback is the prototype for a function to be executed to
populate an item in the cache.
This function will be executed when a fault (cache miss) occurs from a caller requesting an item from the cache.
The callee may complete the operation asynchronously, but MUST return
either a GObject using g_task_return_pointer() or a GError using
g_task_return_error() or g_task_return_new_error().
Parameters
self-
Type:
IdeTaskCacheAn
IdeTaskCache.The data is owned by the caller of the function. key-
Type:
gconstpointerThe key to fetch.
The argument can be NULL.The data is owned by the caller of the function. task-
Type:
GTaskThe task to be completed.
The data is owned by the caller of the function. user_data-
Type:
gpointerUser_data registered at initialization.
The argument can be NULL.The data is owned by the caller of the function.