summaryrefslogtreecommitdiffstats
path: root/src/core/pidwait.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/pidwait.h')
-rw-r--r--src/core/pidwait.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/pidwait.h b/src/core/pidwait.h
new file mode 100644
index 0000000..148c65d
--- /dev/null
+++ b/src/core/pidwait.h
@@ -0,0 +1,16 @@
+#ifndef IRSSI_CORE_PIDWAIT_H
+#define IRSSI_CORE_PIDWAIT_H
+
+void pidwait_init(void);
+void pidwait_deinit(void);
+
+/* add a pid to wait list */
+void pidwait_add(int pid);
+/* remove pid from wait list */
+void pidwait_remove(int pid);
+
+/* return list of pids that are being waited.
+ don't free the return value. */
+GSList *pidwait_get_pids(void);
+
+#endif