Method
IdeSubprocesscommunicate_async
Declaration
void
ide_subprocess_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 orNULL
.The argument can be NULL
.The data is owned by the caller of the method. cancellable
-
Type:
GCancellable
A
GCancellable
orNULL
.The argument can be NULL
.The data is owned by the caller of the method. callback
-
Type:
GAsyncReadyCallback
A callback to complete the request.
The argument can be NULL
. user_data
-
Type:
gpointer
User data for
callback
.The argument can be NULL
.The data is owned by the caller of the method.