]> git.sur5r.net Git - i3/i3/blob - i3bar/include/child.h
Merge branch 'master' into next
[i3/i3] / i3bar / include / child.h
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3bar - an xcb-based status- and ws-bar for i3
5  * © 2010-2012 Axel Wagner and contributors (see also: LICENSE)
6  *
7  * child.c: Getting Input for the statusline
8  *
9  */
10 #ifndef CHILD_H_
11 #define CHILD_H_
12
13 #define STDIN_CHUNK_SIZE 1024
14
15 /*
16  * Start a child-process with the specified command and reroute stdin.
17  * We actually start a $SHELL to execute the command so we don't have to care
18  * about arguments and such
19  *
20  */
21 void start_child(char *command);
22
23 /*
24  * kill()s the child-process (if any). Called when exit()ing.
25  *
26  */
27 void kill_child_at_exit(void);
28
29 /*
30  * kill()s the child-process (if any) and closes and
31  * free()s the stdin- and sigchild-watchers
32  *
33  */
34 void kill_child(void);
35
36 /*
37  * Sends a SIGSTOP to the child-process (if existent)
38  *
39  */
40 void stop_child(void);
41
42 /*
43  * Sends a SIGCONT to the child-process (if existent)
44  *
45  */
46 void cont_child(void);
47
48 #endif