summaryrefslogtreecommitdiff
path: root/hald/hald_runner.h
diff options
context:
space:
mode:
Diffstat (limited to 'hald/hald_runner.h')
-rw-r--r--hald/hald_runner.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/hald/hald_runner.h b/hald/hald_runner.h
index a098ec45..ca055733 100644
--- a/hald/hald_runner.h
+++ b/hald/hald_runner.h
@@ -49,10 +49,13 @@ typedef void (*HalRunTerminatedCB) (HalDevice *d, guint32 exit_type,
gboolean
hald_runner_start_runner(void);
-/* Start a helper, returns true on a successfull start */
+/* Start a helper, returns true on a successfull start.
+ * cb will be called on abnormal or premature termination
+ * only
+ */
gboolean
-hald_runner_start(HalDevice *device, const gchar *command_line,
- char **extra_env);
+hald_runner_start (HalDevice *device, const gchar *command_line, char **extra_env,
+ HalRunTerminatedCB cb, gpointer data1, gpointer data2);
/* Run a helper program using the commandline, with input as infomation on
* stdin */
@@ -73,4 +76,7 @@ hald_runner_run_method(HalDevice *device,
void hald_runner_kill_device(HalDevice *device);
void hald_runner_kill_all();
+/* called by the core to tell the runner a device was finalized */
+void runner_device_finalized (HalDevice *device);
+
#endif