i3bar: Introduce i3bar_child struct

This commit is contained in:
Quentin Glidic
2012-09-03 10:23:25 +02:00
committed by Michael Stapelberg
parent 310ae2d0b5
commit 34dc6d4d64
2 changed files with 34 additions and 24 deletions

View File

@ -12,6 +12,17 @@
#define STDIN_CHUNK_SIZE 1024
typedef struct {
pid_t pid;
/**
* The version number is an uint32_t to avoid machines with different sizes of
* 'int' to allow different values here. Its highly unlikely we ever exceed
* even an int8_t, but still…
*/
uint32_t version;
} i3bar_child;
/*
* Start a child-process with the specified command and reroute stdin.
* We actually start a $SHELL to execute the command so we don't have to care