move list.h and util.[ch] to common/

This commit is contained in:
Julien Danjou 2008-01-21 18:14:59 +01:00
parent b54c405c17
commit 668702b777
36 changed files with 35 additions and 37 deletions

View File

@ -102,7 +102,7 @@ awesome_SOURCES = \
layout.c layout.h \
awesome.c awesome.h \
tag.c tag.h \
util.c util.h \
common/util.c common/util.h \
xutil.c xutil.h \
config.c config.h \
screen.c screen.h \
@ -114,7 +114,7 @@ awesome_SOURCES = \
awesome-client-common.c \
widget.c widget.h \
ewmh.c ewmh.h \
list.h structs.h
common/list.h structs.h
awesome_SOURCES += $(LAYOUTS)
awesome_SOURCES += $(WIDGETS)
awesome_LDADD = $(XFT_LIBS) $(X_LIBS) $(CAIRO_LIBS) $(CONFUSE_LIBS) $(XRANDR_LIBS) $(XINERAMA_LIBS)
@ -124,7 +124,7 @@ AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = awesome-client$(EXEEXT)
awesome_client_SOURCES = \
awesome-client.c awesome-client.h \
awesome-client-common.c \
util.c util.h
common/util.c common/util.h
EXTRA_DIST += awesome.1.txt

View File

@ -25,7 +25,7 @@
#include <sys/un.h>
#include "awesome-client.h"
#include "util.h"
#include "common/util.h"
#define CONTROL_UNIX_SOCKET_PATH ".awesome_ctl."

View File

@ -27,7 +27,7 @@
#include <sys/un.h>
#include "awesome-client.h"
#include "util.h"
#include "common/util.h"
/* GNU/Hurd workaround */
#ifndef MSG_NOSIGNAL

View File

@ -42,7 +42,6 @@
#include "event.h"
#include "layout.h"
#include "screen.h"
#include "util.h"
#include "statusbar.h"
#include "uicb.h"
#include "window.h"
@ -50,6 +49,7 @@
#include "focus.h"
#include "ewmh.h"
#include "awesome-client.h"
#include "common/util.h"
static int (*xerrorxlib) (Display *, XErrorEvent *);
static Bool running = True;

View File

@ -27,7 +27,6 @@
#include "client.h"
#include "tag.h"
#include "rules.h"
#include "util.h"
#include "xutil.h"
#include "window.h"
#include "focus.h"

View File

@ -27,7 +27,6 @@
#include "statusbar.h"
#include "tag.h"
#include "util.h"
#include "rules.h"
#include "screen.h"
#include "widget.h"
@ -35,6 +34,7 @@
#include "ewmh.h"
#include "defconfig.h"
#include "layouts/tile.h"
#include "common/util.h"
#define AWESOME_CONFIG_FILE ".awesomerc"

2
draw.c
View File

@ -23,7 +23,7 @@
#include <cairo-ft.h>
#include <cairo-xlib.h>
#include <math.h>
#include "util.h"
#include "common/util.h"
#include "config.h"
extern AwesomeConf globalconf;

View File

@ -29,7 +29,6 @@
#include "event.h"
#include "tag.h"
#include "statusbar.h"
#include "util.h"
#include "window.h"
#include "mouse.h"
#include "ewmh.h"
@ -39,6 +38,7 @@
#include "rules.h"
#include "layouts/tile.h"
#include "layouts/floating.h"
#include "common/util.h"
extern AwesomeConf globalconf;

2
ewmh.c
View File

@ -23,12 +23,12 @@
#include <X11/Xmd.h>
#include "ewmh.h"
#include "util.h"
#include "tag.h"
#include "focus.h"
#include "screen.h"
#include "client.h"
#include "widget.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -19,7 +19,7 @@
*
*/
#include "util.h"
#include "common/util.h"
#include "tag.h"
#include "focus.h"
#include "client.h"

View File

@ -23,7 +23,6 @@
#include <X11/Xutil.h>
#include "tag.h"
#include "util.h"
#include "xutil.h"
#include "focus.h"
#include "widget.h"
@ -35,6 +34,7 @@
#include "layouts/max.h"
#include "layouts/fibonacci.h"
#include "layouts/floating.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -23,8 +23,8 @@
#define AWESOME_LAYOUT_H
#include "uicb.h"
#include "list.h"
#include "util.h"
#include "common/list.h"
#include "common/util.h"
typedef void (LayoutArrange)(int);

View File

@ -21,9 +21,9 @@
#include "screen.h"
#include "tag.h"
#include "util.h"
#include "client.h"
#include "layouts/fibonacci.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -21,9 +21,9 @@
#include "tag.h"
#include "screen.h"
#include "util.h"
#include "client.h"
#include "layouts/max.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -21,13 +21,13 @@
#include <stdio.h>
#include "util.h"
#include "screen.h"
#include "awesome.h"
#include "tag.h"
#include "layout.h"
#include "client.h"
#include "layouts/tile.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -25,12 +25,12 @@
#include "screen.h"
#include "layout.h"
#include "tag.h"
#include "util.h"
#include "event.h"
#include "window.h"
#include "client.h"
#include "layouts/floating.h"
#include "layouts/tile.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -19,9 +19,9 @@
*
*/
#include "util.h"
#include "rules.h"
#include "xutil.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -21,12 +21,12 @@
#include <X11/extensions/Xinerama.h>
#include "util.h"
#include "screen.h"
#include "tag.h"
#include "focus.h"
#include "client.h"
#include "layouts/floating.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -24,9 +24,9 @@
#include "statusbar.h"
#include "screen.h"
#include "util.h"
#include "tag.h"
#include "widget.h"
#include "common/util.h"
extern AwesomeConf globalconf;

2
tag.c
View File

@ -24,11 +24,11 @@
#include "screen.h"
#include "tag.h"
#include "util.h"
#include "rules.h"
#include "client.h"
#include "ewmh.h"
#include "widget.h"
#include "common/util.h"
extern AwesomeConf globalconf;

2
uicb.c
View File

@ -20,7 +20,6 @@
*/
#include "awesome.h"
#include "util.h"
#include "xutil.h"
#include "tag.h"
#include "mouse.h"
@ -30,6 +29,7 @@
#include "client.h"
#include "screen.h"
#include "layouts/tile.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -20,10 +20,10 @@
*
*/
#include "util.h"
#include "widget.h"
#include "statusbar.h"
#include "event.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -21,13 +21,13 @@
*/
#include <stdio.h>
#include "util.h"
#include "widget.h"
#include "layout.h"
#include "tag.h"
#include "focus.h"
#include "xutil.h"
#include "screen.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -20,11 +20,11 @@
*
*/
#include "util.h"
#include "draw.h"
#include "widget.h"
#include "xutil.h"
#include "screen.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -19,8 +19,8 @@
*
*/
#include "util.h"
#include "widget.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -22,8 +22,8 @@
*/
#include "widget.h"
#include "util.h"
#include "tag.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -21,12 +21,12 @@
#include <X11/Xmd.h>
#include <X11/Xatom.h>
#include "util.h"
#include "focus.h"
#include "tag.h"
#include "widget.h"
#include "rules.h"
#include "ewmh.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -20,11 +20,11 @@
*/
#include <string.h>
#include "util.h"
#include "draw.h"
#include "widget.h"
#include "xutil.h"
#include "screen.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -21,10 +21,10 @@
#include "config.h"
#include "client.h"
#include "util.h"
#include "widget.h"
#include "tag.h"
#include "event.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -19,8 +19,6 @@
*
*/
#include <stdio.h>
#include "util.h"
#include "widget.h"
#include "client.h"
#include "focus.h"
@ -30,6 +28,7 @@
#include "ewmh.h"
#include "rules.h"
#include "tag.h"
#include "common/util.h"
#define ISVISIBLE_ON_TB(c, nscreen, show_all) ((!show_all && client_isvisible(c, nscreen) && !c->skiptb) \
|| (show_all && c->screen == nscreen && !c->skiptb))

View File

@ -19,10 +19,10 @@
*
*/
#include "util.h"
#include "widget.h"
#include "xutil.h"
#include "screen.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -24,7 +24,7 @@
#include "config.h"
#include "window.h"
#include "util.h"
#include "common/util.h"
extern AwesomeConf globalconf;

View File

@ -24,9 +24,9 @@
#include <sys/wait.h>
#include "config.h"
#include "util.h"
#include "xutil.h"
#include "screen.h"
#include "common/util.h"
extern AwesomeConf globalconf;