cnode: move struct to cnode header

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-10-24 20:40:02 +02:00
parent 1e89515d97
commit c954c33261
3 changed files with 10 additions and 9 deletions

View File

@ -24,6 +24,7 @@
#include <xcb/xcb.h> #include <xcb/xcb.h>
#include <xcb/xcb_atom.h> #include <xcb/xcb_atom.h>
#include "cnode.h"
#include "image.h" #include "image.h"
#include "client.h" #include "client.h"
#include "tag.h" #include "tag.h"

View File

@ -24,6 +24,14 @@
#include "client.h" #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_getby(client_node_t *, client_t *);
client_node_t * client_node_client_add(client_node_t **, client_t *); client_node_t * client_node_client_add(client_node_t **, client_t *);

View File

@ -63,7 +63,7 @@ typedef struct button_t button_t;
typedef struct widget_t widget_t; typedef struct widget_t widget_t;
typedef struct widget_node_t widget_node_t; typedef struct widget_node_t widget_node_t;
typedef struct client_t client_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 tag_t;
typedef struct tag_client_node_t tag_client_node_t; typedef struct tag_client_node_t tag_client_node_t;
typedef widget_t *(widget_constructor_t)(alignment_t); typedef widget_t *(widget_constructor_t)(alignment_t);
@ -225,14 +225,6 @@ struct client_t
}; };
ARRAY_TYPE(client_t *, client) 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 */ /** Tag type */
struct tag struct tag
{ {