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

Type: 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

Type: char**

The argument vector.

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

Type: 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

Type: gint*

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

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

Type: gint*

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

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

Type: gint*

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

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

Type: 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

Type: 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

Type: gboolean

TRUE if the child was successfully spawned, FALSE otherwise.