SimpleAsyncResult.isValid

Ensures that the data passed to the _finish function of an async operation is consistent. Three checks are performed. First, result is checked to ensure that it is really a GSimpleAsyncResult. Second, source is checked to ensure that it matches the source object of result. Third, source_tag is checked to ensure that it is either NULL (as it is when the result was created by g_simple_async_report_error_in_idle() or g_simple_async_report_gerror_in_idle()) or equal to the source_tag argument given to g_simple_async_result_new() (which, by convention, is a pointer to the _async function corresponding to the _finish function from which this function is called). Since 2.20

class SimpleAsyncResult
static
int
isValid

Parameters

result GAsyncResult*

the GAsyncResult passed to the _finish function.

source ObjectG

the GObject passed to the _finish function.

sourceTag void*

the asynchronous function.

Return Value

Type: int

TRUE if all checks passed or FALSE if any failed.

Meta