tag: move struct definition into tag.h
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
de94a2cb12
commit
6fe35b1387
15
structs.h
15
structs.h
|
@ -53,21 +53,6 @@ ARRAY_TYPE(tag_t *, tag)
|
||||||
ARRAY_TYPE(screen_t, screen)
|
ARRAY_TYPE(screen_t, screen)
|
||||||
ARRAY_TYPE(client_t *, client)
|
ARRAY_TYPE(client_t *, client)
|
||||||
|
|
||||||
/** Tag type */
|
|
||||||
struct tag
|
|
||||||
{
|
|
||||||
/** Lua references count */
|
|
||||||
luaA_ref_array_t refs;
|
|
||||||
/** Tag name */
|
|
||||||
char *name;
|
|
||||||
/** Screen */
|
|
||||||
screen_t *screen;
|
|
||||||
/** true if selected */
|
|
||||||
bool selected;
|
|
||||||
/** clients in this tag */
|
|
||||||
client_array_t clients;
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Main configuration structure */
|
/** Main configuration structure */
|
||||||
struct awesome_t
|
struct awesome_t
|
||||||
{
|
{
|
||||||
|
|
15
tag.h
15
tag.h
|
@ -25,6 +25,21 @@
|
||||||
#include "structs.h"
|
#include "structs.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
|
|
||||||
|
/** Tag type */
|
||||||
|
struct tag
|
||||||
|
{
|
||||||
|
/** Lua references count */
|
||||||
|
luaA_ref_array_t refs;
|
||||||
|
/** Tag name */
|
||||||
|
char *name;
|
||||||
|
/** Screen */
|
||||||
|
screen_t *screen;
|
||||||
|
/** true if selected */
|
||||||
|
bool selected;
|
||||||
|
/** clients in this tag */
|
||||||
|
client_array_t clients;
|
||||||
|
};
|
||||||
|
|
||||||
tag_t **tags_get_current(screen_t *);
|
tag_t **tags_get_current(screen_t *);
|
||||||
void tag_client(client_t *);
|
void tag_client(client_t *);
|
||||||
void untag_client(client_t *, tag_t *);
|
void untag_client(client_t *, tag_t *);
|
||||||
|
|
Loading…
Reference in New Issue