hald_runner
3
HAL Library

# hald_runner

## Synopsis

    #define     HALD_RUN_SUCCESS
    #define     HALD_RUN_TIMEOUT
    #define     HALD_RUN_FAILED
    #define     HALD_RUN_KILLED
    #define     HAL_HELPER_TIMEOUT
    void        (*HalRunTerminatedCB)           (HalDevice *d,
                                                 guint32 exit_type,
                                                 gint return_code,
                                                 gchar **error,
                                                 gpointer data1,
                                                 gpointer data2);
    gboolean    hald_runner_start_runner        (void);
    gboolean    hald_runner_start               (HalDevice *device,
                                                 const gchar *command_line,
                                                 char **extra_env);
    void        hald_runner_run                 (HalDevice *device,
                                                 const gchar *command_line,
                                                 char **extra_env,
                                                 guint32 timeout,
                                                 HalRunTerminatedCB cb,
                                                 gpointer data1,
                                                 gpointer data2);
    void        hald_runner_run_method          (HalDevice *device,
                                                 const gchar *command_line,
                                                 char **extra_env,
                                                 gchar *input,
                                                 gboolean error_on_stderr,
                                                 guint32 timeout,
                                                 HalRunTerminatedCB cb,
                                                 gpointer data1,
                                                 gpointer data2);
    void        hald_runner_kill_device         (HalDevice *device);
    void        hald_runner_kill_all            ();

## Description

## Details

### HALD_RUN_SUCCESS

    #define HALD_RUN_SUCCESS 0x0

### HALD_RUN_TIMEOUT

    #define  HALD_RUN_TIMEOUT 0x1

### HALD_RUN_FAILED

    #define HALD_RUN_FAILED 0x2

### HALD_RUN_KILLED

    #define HALD_RUN_KILLED 0x4

### HAL_HELPER_TIMEOUT

    #define     HAL_HELPER_TIMEOUT

### HalRunTerminatedCB ()

    void        (*HalRunTerminatedCB)           (HalDevice *d,
                                                 guint32 exit_type,
                                                 gint return_code,
                                                 gchar **error,
                                                 gpointer data1,
                                                 gpointer data2);

`d` :

`exit_type` :

`return_code` :

`error` :

`data1` :

`data2` :

### hald_runner_start_runner ()

    gboolean    hald_runner_start_runner        (void);

Returns :

### hald_runner_start ()

    gboolean    hald_runner_start               (HalDevice *device,
                                                 const gchar *command_line,
                                                 char **extra_env);

`device` :

`command_line` :

`extra_env` :

Returns :

### hald_runner_run ()

    void        hald_runner_run                 (HalDevice *device,
                                                 const gchar *command_line,
                                                 char **extra_env,
                                                 guint32 timeout,
                                                 HalRunTerminatedCB cb,
                                                 gpointer data1,
                                                 gpointer data2);

`device` :

`command_line` :

`extra_env` :

`timeout` :

`cb` :

`data1` :

`data2` :

### hald_runner_run_method ()

    void        hald_runner_run_method          (HalDevice *device,
                                                 const gchar *command_line,
                                                 char **extra_env,
                                                 gchar *input,
                                                 gboolean error_on_stderr,
                                                 guint32 timeout,
                                                 HalRunTerminatedCB cb,
                                                 gpointer data1,
                                                 gpointer data2);

`device` :

`command_line` :

`extra_env` :

`input` :

`error_on_stderr` :

`timeout` :

`cb` :

`data1` :

`data2` :

### hald_runner_kill_device ()

    void        hald_runner_kill_device         (HalDevice *device);

`device` :

### hald_runner_kill_all ()

    void        hald_runner_kill_all            ();