]> git.sur5r.net Git - i3/i3/blobdiff - i3bar/include/workspaces.h
Migrate to queue.h
[i3/i3] / i3bar / include / workspaces.h
index d4975a1e050f316265b66dceacf44a4b5eb1bd18..56e36627dac598070070736f0b044fde486bf594 100644 (file)
@@ -4,24 +4,24 @@
 #include "common.h"
 #include "outputs.h"
 
-typedef struct i3_ws_t i3_ws;
+typedef struct i3_ws i3_ws;
 
-i3_ws* workspaces;
+TAILQ_HEAD(ws_head, i3_ws);
 
 void parse_workspaces_json();
 void free_workspaces();
 
-struct i3_ws_t {
-       int             num;
-       char*           name;
-       int             name_width;
-       bool            visible;
-       bool            focused;
-       bool            urgent;
-       rect            rect;
-       i3_output*      output;
+struct i3_ws {
+       int                     num;
+       char                    *name;
+       int                     name_width;
+       bool                    visible;
+       bool                    focused;
+       bool                    urgent;
+       rect                    rect;
+       struct i3_output        *output;
 
-       i3_ws*          next;
+       TAILQ_ENTRY(i3_ws)      tailq;
 };
 
 #endif