Method

IdeSubprocesscommunicate_utf8

Declaration

gboolean
ide_subprocess_communicate_utf8 (
  IdeSubprocess* self,
  const gchar* stdin_buf,
  GCancellable* cancellable,
  gchar** stdout_buf,
  gchar** stderr_buf,
  GError** error
)

Description

This process acts identical to g_subprocess_communicate_utf8().

Available since:3.32

Parameters

stdin_buf const gchar*
 

Input to deliver to the subprocesses stdin stream.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
cancellable GCancellable
 

An optional GCancellable.

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

An optional location for the stdout contents.

 The argument will be set by the function.
 The argument can be set to NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.
stderr_buf gchar**
 

An optional location for the stderr contents.

 The argument will be set by the function.
 The argument can be set to NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if successful; otherwise FALSE and error is set.