Method
CamelDataWrapperconstruct_from_stream
since: 3.0
Declaration [src]
void
camel_data_wrapper_construct_from_stream (
CamelDataWrapper* data_wrapper,
CamelStream* stream,
gint io_priority,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Asynchronously constructs the content of data_wrapper from the given
stream.
When the operation is finished, callback will be called. You can then call camel_data_wrapper_construct_from_stream_finish() to get the result
of the operation.
Available since: 3.0
This method completes asynchronously. Use camel_data_wrapper_construct_from_stream_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
stream-
Type:
CamelStreamAn input
CamelStream.The data is owned by the caller of the method. io_priority-
Type:
gintThe I/O priority of the request.
cancellable-
Type:
GCancellableOptional
GCancellableobject, orNULL.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackA
GAsyncReadyCallbackto call when the request is satisfied.The argument can be NULL. user_data-
Type:
gpointerData to pass to the callback function.
The argument can be NULL.The data is owned by the caller of the method.