| OGMJob Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#include <ogmjob-exec.h> gdouble (*OGMJobWatch) (OGMJobExec *exec,const gchar *buffer,gpointer data); struct OGMJobExec; OGMJobSpawn * ogmjob_exec_new (const gchar *command_line); OGMJobSpawn * ogmjob_exec_newv (gchar **argv); gint ogmjob_exec_get_status (OGMJobExec *exec); void ogmjob_exec_add_watch (OGMJobExec *exec,OGMJobWatch watch_func,gpointer watch_data); void ogmjob_exec_add_watch_full (OGMJobExec *exec,OGMJobWatch watch_func,gpointer watch_data,gboolean watch_out,gboolean watch_err,gboolean swapped);
gdouble (*OGMJobWatch) (OGMJobExec *exec,const gchar *buffer,gpointer data);
Specifies the type of functions passed to ogmjob_exec_add_watch(), and
ogmjob_exec_add_watch_full().
|
An OGMJobExec |
|
The data read |
|
The user data |
Returns : |
The progress made, or -1 |
OGMJobSpawn * ogmjob_exec_new (const gchar *command_line);
Creates a new OGMJobExec.
|
A command line |
Returns : |
The new OGMJobExec |
OGMJobSpawn * ogmjob_exec_newv (gchar **argv);
Creates a new OGMJobExec.
|
An argument vector |
Returns : |
The new OGMJobExec |
gint ogmjob_exec_get_status (OGMJobExec *exec);
Returns the execution status.
|
An OGMJobExec |
Returns : |
The execution status |
void ogmjob_exec_add_watch (OGMJobExec *exec,OGMJobWatch watch_func,gpointer watch_data);
Invokes watch_func each time data is available on stdin or stdout.
|
An OGMJobExec |
|
An OGMJobWatch |
|
User data |
void ogmjob_exec_add_watch_full (OGMJobExec *exec,OGMJobWatch watch_func,gpointer watch_data,gboolean watch_out,gboolean watch_err,gboolean swapped);
Invokes watch_func each time data is available on stdin or stdout.
|
An OGMJobExec |
|
An OGMJobWatch |
|
User data |
|
Whether to watch stdin |
|
Whether to watch stdout |
|
Whether to swap exec and watch_data when calling watch_func
|