Virtual Method

IdeSubprocesscommunicate_async

Declaration

void
communicate_async (
  IdeSubprocess* self,
  GBytes* stdin_buf,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description

Asynchronously communicates with the the child process.

There is no need to call ide_subprocess_wait() on the process if using this asynchronous operation as it will internally wait for the child to exit or be signaled.

Ensure you’ve set the proper flags to ensure that you can write to stdin or read from stderr/stdout as necessary.

Parameters

stdin_buf

Type: GBytes

A GBytes to send to stdin or NULL.

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

Type: GCancellable

A GCancellable or NULL.

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

Type: GAsyncReadyCallback

A callback to complete the request.

user_data

Type: gpointer

User data for callback.

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