]> git.sur5r.net Git - i3/i3/blob - i3bar/include/child.h
Send the child SIGSTOPs and SIGCONTs
[i3/i3] / i3bar / include / child.h
1 /*
2  * i3bar - an xcb-based status- and ws-bar for i3
3  *
4  * © 2010 Axel Wagner and contributors
5  *
6  * See file LICNSE for license information
7  *
8  */
9 #ifndef CHILD_H_
10 #define CHILD_H_
11
12 #define STDIN_CHUNK_SIZE 1024
13
14 /*
15  * Start a child-process with the specified command and reroute stdin.
16  * We actually start a $SHELL to execute the command so we don't have to care
17  * about arguments and such
18  *
19  */
20 void start_child(char *command);
21
22 /*
23  * kill()s the child-prozess (if existend) and closes and
24  * free()s the stdin- and sigchild-watchers
25  *
26  */
27 void kill_child();
28
29 /*
30  * Sends a SIGSTOP to the child-process (if existent)
31  *
32  */
33 void stop_child();
34
35 /*
36  * Sends a SIGCONT to the child-process (if existent)
37  *
38  */
39 void cont_child();
40
41 #endif