Use containers

This commit is contained in:
Michael Stapelberg
2009-02-07 21:08:30 +01:00
parent 1e70aa2e89
commit 968a999d3d
3 changed files with 58 additions and 26 deletions

4
data.h
View File

@ -48,5 +48,9 @@ typedef struct Client {
*
*/
typedef struct Container {
/* Ensure MODE_DEFAULT maps to 0 because we use calloc for initialization later */
int row;
int col;
enum { MODE_DEFAULT = 0, MODE_STACK = 1 } mode;
LIST_HEAD(client_head, Client) clients;
} Container;