]> git.decadent.org.uk Git - videolink.git/blob - auto_proc.hpp
Removed version requirement on mjpegtools.
[videolink.git] / auto_proc.hpp
1 // Copyright 2005 Ben Hutchings <ben@decadentplace.org.uk>.
2 // See the file "COPYING" for licence details.
3
4 #ifndef INC_AUTO_PROC_HPP
5 #define INC_AUTO_PROC_HPP
6
7 #include <sys/types.h>
8
9 #include "auto_handle.hpp"
10
11 struct auto_proc_factory
12 {
13     pid_t operator()() const { return -1; }
14 };
15
16 struct auto_kill_proc_closer
17 {
18     void operator()(pid_t pid) const;
19 };
20 typedef auto_handle<pid_t, auto_kill_proc_closer, auto_proc_factory>
21     auto_kill_proc;
22
23 struct auto_wait_proc_closer
24 {
25     void operator()(pid_t pid) const;
26 };
27 typedef auto_handle<pid_t, auto_wait_proc_closer, auto_proc_factory>
28     auto_wait_proc;
29
30 #endif // !INC_AUTO_PROC_HPP