Method

BirbReadlineread_stream_async

since: 0.9

Declaration [src]

void
birb_readline_read_stream_async (
  BirbReadline* readline,
  GInputStream* input,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer data
)

Description [src]

Reads a line of text from the given stream.

Available since: 0.9

This method completes asynchronously. Use birb_readline_read_stream_finish() inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

input

Type: GInputStream

The input stream to read.

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

Type: GCancellable

An optional cancellable.

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

Type: GAsyncReadyCallback

An optional callback.

The argument can be NULL.
data

Type: gpointer

The user data to pass to the callback.

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