From f700e483d66ce6f40aa5df8d66cca2d3fc9e1ea2 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 13 Jan 2008 15:29:46 +0100 Subject: [PATCH] rename TagClientLink to tag_client_node_t --- config.h | 12 ++++++------ tag.c | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/config.h b/config.h index 3c1a34d3..40afe9a0 100644 --- a/config.h +++ b/config.h @@ -234,16 +234,16 @@ struct Tag DO_SLIST(Tag, tag, p_delete); -/** TagClientLink type */ -typedef struct TagClientLink TagClientLink; -struct TagClientLink +/** tag_client_node type */ +typedef struct tag_client_node_t tag_client_node_t; +struct tag_client_node_t { Tag *tag; Client *client; - TagClientLink *next; + tag_client_node_t *next; }; -DO_SLIST(TagClientLink, tcl, p_delete); +DO_SLIST(tag_client_node_t, tag_client_node, p_delete); /** Padding type */ typedef struct @@ -330,7 +330,7 @@ struct AwesomeConf /** Selected clients history */ client_node_t *focus; /** Link between tags and clients */ - TagClientLink *tclink; + tag_client_node_t *tclink; /** Command line passed to awesome */ char *argv; }; diff --git a/tag.c b/tag.c index e2287f1f..ef60d9c1 100644 --- a/tag.c +++ b/tag.c @@ -35,16 +35,16 @@ extern AwesomeConf globalconf; void tag_client(Client *c, Tag *t) { - TagClientLink *tc; + tag_client_node_t *tc; /* don't tag twice */ if(is_client_tagged(c, t)) return; - tc = p_new(TagClientLink, 1); + tc = p_new(tag_client_node_t, 1); tc->client = c; tc->tag = t; - tcl_list_push(&globalconf.tclink, tc); + tag_client_node_list_push(&globalconf.tclink, tc); widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS); } @@ -52,12 +52,12 @@ tag_client(Client *c, Tag *t) void untag_client(Client *c, Tag *t) { - TagClientLink *tc; + tag_client_node_t *tc; for(tc = globalconf.tclink; tc; tc = tc->next) if(tc->client == c && tc->tag == t) { - tcl_list_detach(&globalconf.tclink, tc); + tag_client_node_list_detach(&globalconf.tclink, tc); p_delete(&tc); break; } @@ -68,7 +68,7 @@ untag_client(Client *c, Tag *t) Bool is_client_tagged(Client *c, Tag *t) { - TagClientLink *tc; + tag_client_node_t *tc; if(!c) return False;