From c954c332614740dcd41d246591330e4802003e44 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 24 Oct 2008 20:40:02 +0200 Subject: [PATCH] cnode: move struct to cnode header Signed-off-by: Julien Danjou --- client.c | 1 + cnode.h | 8 ++++++++ structs.h | 10 +--------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/client.c b/client.c index c8c85472..b3284351 100644 --- a/client.c +++ b/client.c @@ -24,6 +24,7 @@ #include #include +#include "cnode.h" #include "image.h" #include "client.h" #include "tag.h" diff --git a/cnode.h b/cnode.h index 67bf7ca7..5f8dbcb7 100644 --- a/cnode.h +++ b/cnode.h @@ -24,6 +24,14 @@ #include "client.h" +struct client_node +{ + /** The client */ + client_t *client; + /** Next and previous client_nodes */ + client_node_t *prev, *next; +}; + client_node_t * client_node_client_getby(client_node_t *, client_t *); client_node_t * client_node_client_add(client_node_t **, client_t *); diff --git a/structs.h b/structs.h index c489c924..c678edc4 100644 --- a/structs.h +++ b/structs.h @@ -63,7 +63,7 @@ typedef struct button_t button_t; typedef struct widget_t widget_t; typedef struct widget_node_t widget_node_t; typedef struct client_t client_t; -typedef struct client_node_t client_node_t; +typedef struct client_node client_node_t; typedef struct tag tag_t; typedef struct tag_client_node_t tag_client_node_t; typedef widget_t *(widget_constructor_t)(alignment_t); @@ -225,14 +225,6 @@ struct client_t }; ARRAY_TYPE(client_t *, client) -struct client_node_t -{ - /** The client */ - client_t *client; - /** Next and previous client_nodes */ - client_node_t *prev, *next; -}; - /** Tag type */ struct tag { -- 2.11.4.GIT