Callback function called once for each operation in a batch operation run. The operation is identified by operation_id and operation_type (where
operation_id is the ID returned by the relevant call to gdata_batch_operation_add_query(), gdata_batch_operation_add_insertion(),
gdata_batch_operation_add_update() or gdata_batch_operation_add_deletion(), and operation_type shows which one of the above was called).
If the operation was successful, the resulting #GDataEntry will be passed in as entry, and error will be %NULL. Otherwise, entry will be %NULL
and a descriptive error will be in error. If operation_type is %GDATA_BATCH_OPERATION_DELETION, entry will always be %NULL, and error will be
%NULL or non-%NULL as appropriate.
If the callback code needs to retain a copy of entry, it must be referenced (with g_object_ref()). Similarly, error is owned by the calling code,
and must not be freed.
The callback is called in the main thread, and there is no guarantee on the order in which the callbacks for the operations in a run are executed,
or whether they will be called in a timely manner. It is, however, guaranteed that they will all be called before the #GAsyncReadyCallback which
signals the completion of the run (if initiated with gdata_batch_operation_run_async()) is called; or gdata_batch_operation_run() returns (if
initiated synchronously).
Parameters
operationId: number
the operation ID returned from gdata_batch_operation_add_*()
Callback function called once for each operation in a batch operation run. The operation is identified by
operation_id
andoperation_type
(whereoperation_id
is the ID returned by the relevant call to gdata_batch_operation_add_query(), gdata_batch_operation_add_insertion(), gdata_batch_operation_add_update() or gdata_batch_operation_add_deletion(), andoperation_type
shows which one of the above was called).If the operation was successful, the resulting #GDataEntry will be passed in as
entry,
anderror
will be %NULL. Otherwise,entry
will be %NULL and a descriptive error will be inerror
. Ifoperation_type
is %GDATA_BATCH_OPERATION_DELETION,entry
will always be %NULL, anderror
will be %NULL or non-%NULL as appropriate.If the callback code needs to retain a copy of
entry,
it must be referenced (with g_object_ref()). Similarly,error
is owned by the calling code, and must not be freed.The callback is called in the main thread, and there is no guarantee on the order in which the callbacks for the operations in a run are executed, or whether they will be called in a timely manner. It is, however, guaranteed that they will all be called before the #GAsyncReadyCallback which signals the completion of the run (if initiated with gdata_batch_operation_run_async()) is called; or gdata_batch_operation_run() returns (if initiated synchronously).