Constructor
GioSimpleAsyncResultnew_from_error
deprecated: 2.46
Declaration
GSimpleAsyncResult*
g_simple_async_result_new_from_error (
GObject* source_object,
GAsyncReadyCallback callback,
gpointer user_data,
const GError* error
)
Description
Creates a GSimpleAsyncResult from an error condition.
Deprecated since: 2.46
Use g_task_new() and g_task_return_error() instead.
Parameters
source_object-
Type:
GObjectA
GObject, orNULL.The argument can be NULL.The data is owned by the caller of the function. callback-
Type:
GAsyncReadyCallbackA
GAsyncReadyCallback.The argument can be NULL. user_data-
Type:
gpointerUser data passed to
callback.The argument can be NULL.The data is owned by the caller of the function. error-
Type:
GErrorA
GError.The data is owned by the caller of the function.
Return value
Type: GSimpleAsyncResult
A GSimpleAsyncResult.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |