Method
AppStreamComposeComposeset_check_metadata_early_func
since: 0.15.1
Declaration [src]
void
asc_compose_set_check_metadata_early_func (
AscCompose* compose,
AscCheckMetadataEarlyFn func,
gpointer user_data,
GDestroyNotify udata_free_func
)
Description [src]
Set an custom callback to be run when most of the metadata has been loaded, but no expensive operations (like downloads or icon rendering) have been done yet. This can be used to ignore unwanted components early on.
The callback function may be called from any thread, so it needs to ensure thread safety on its own.
Any previously set callback is replaced, and its user data released using the destroy function it was registered with.
Available since: 0.15.1
Parameters
func-
Type:
AscCheckMetadataEarlyFnThe
AscCheckMetadataEarlyFnfunction to be called.The argument can be NULL. user_data-
Type:
gpointerUser data for
func.The argument can be NULL.The data is owned by the caller of the method. udata_free_func-
Type:
GDestroyNotifyFunction to free
user_data.The argument can be NULL.