Function

Gntgiveup_console

Declaration [src]

gboolean
gnt_giveup_console (
  const char* wd,
  char** argv,
  char** envp,
  gint* stin,
  gint* stout,
  gint* sterr,
  gpointer* callback,
  gpointer data
)

Description [src]

Spawn a different application that will consume the console.

Parameters

wd const char*
 

The working directory for the new application.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
argv char**
 

The argument vector.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
envp char**
 

The environment, or NULL.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
stin gint*
 

Location to store the child’s stdin, or NULL.

 The data is owned by the caller of the function.
stout gint*
 

Location to store the child’s stdout, or NULL.

 The data is owned by the caller of the function.
sterr gint*
 

Location to store the child’s stderr, or NULL.

 The data is owned by the caller of the function.
callback gpointer*
 

The callback to call after the child exits.

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

The data to pass to the callback.

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

Return value

Returns: gboolean
 

TRUE if the child was successfully spawned, FALSE otherwise.