rename TagClientLink to tag_client_node_t

This commit is contained in:
Julien Danjou 2008-01-13 15:29:46 +01:00
parent 6fc766a847
commit f700e483d6
2 changed files with 12 additions and 12 deletions

View File

@ -234,16 +234,16 @@ struct Tag
DO_SLIST(Tag, tag, p_delete); DO_SLIST(Tag, tag, p_delete);
/** TagClientLink type */ /** tag_client_node type */
typedef struct TagClientLink TagClientLink; typedef struct tag_client_node_t tag_client_node_t;
struct TagClientLink struct tag_client_node_t
{ {
Tag *tag; Tag *tag;
Client *client; 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 */ /** Padding type */
typedef struct typedef struct
@ -330,7 +330,7 @@ struct AwesomeConf
/** Selected clients history */ /** Selected clients history */
client_node_t *focus; client_node_t *focus;
/** Link between tags and clients */ /** Link between tags and clients */
TagClientLink *tclink; tag_client_node_t *tclink;
/** Command line passed to awesome */ /** Command line passed to awesome */
char *argv; char *argv;
}; };

12
tag.c
View File

@ -35,16 +35,16 @@ extern AwesomeConf globalconf;
void void
tag_client(Client *c, Tag *t) tag_client(Client *c, Tag *t)
{ {
TagClientLink *tc; tag_client_node_t *tc;
/* don't tag twice */ /* don't tag twice */
if(is_client_tagged(c, t)) if(is_client_tagged(c, t))
return; return;
tc = p_new(TagClientLink, 1); tc = p_new(tag_client_node_t, 1);
tc->client = c; tc->client = c;
tc->tag = t; 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); widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
} }
@ -52,12 +52,12 @@ tag_client(Client *c, Tag *t)
void void
untag_client(Client *c, Tag *t) untag_client(Client *c, Tag *t)
{ {
TagClientLink *tc; tag_client_node_t *tc;
for(tc = globalconf.tclink; tc; tc = tc->next) for(tc = globalconf.tclink; tc; tc = tc->next)
if(tc->client == c && tc->tag == t) if(tc->client == c && tc->tag == t)
{ {
tcl_list_detach(&globalconf.tclink, tc); tag_client_node_list_detach(&globalconf.tclink, tc);
p_delete(&tc); p_delete(&tc);
break; break;
} }
@ -68,7 +68,7 @@ untag_client(Client *c, Tag *t)
Bool Bool
is_client_tagged(Client *c, Tag *t) is_client_tagged(Client *c, Tag *t)
{ {
TagClientLink *tc; tag_client_node_t *tc;
if(!c) if(!c)
return False; return False;