Virtual Method

OmniTransformerStatetake_from_async

Declaration

void
take_from_async (
  OmniTransformerState* self,
  OmniTransformerState* source_state,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  void* user_data
)

Description

Move the internal state from another instance of OmniTransformerState.

source_state specifies the object to transfer state data from. After a successful call to this method, source_state is left in an undefined state, in which only the state-restoring methods, such as this method, work correctly.

source_state must point to a different object created by a logically equal (omni_transformer_eq()) instance of OmniTransformer.

Even though this method is defined as fallible, it is only allowed to throw G_IO_ERROR_CANCELLED at the moment. (This does not need to be observed if preconditions are violated.)

This method is never called if OMNI_TRANSFORMER_FEATURE_FLAGS_STATELESS is set. If it is not set, this method must be overridden, as the default implementation throws an error.

Parameters

source_state

Type: OmniTransformerState

No description available.

The data is owned by the caller of the method.
cancellable

Type: GCancellable

No description available.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

No description available.

user_data

Type: void*

No description available.

The argument can be NULL.
The data is owned by the caller of the method.