From 8592058e0074b9869540cabe1ff4fcdfec1c31df Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 24 Sep 2007 14:59:29 +0200 Subject: [PATCH] add a LAYOUT_PROTO to common.h and use it --- common.h | 3 +++ layouts/floating.h | 2 +- layouts/max.h | 4 +++- layouts/tile.h | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/common.h b/common.h index 44ea87f6..ae83eb2b 100644 --- a/common.h +++ b/common.h @@ -27,4 +27,7 @@ /** Common prototype definition for ui_callbak functions */ #define UICB_PROTO(name) void name(Display *, DC *, awesome_config *, const char *) +/** Common prototype definition for layouts function */ +#define LAYOUT_PROTO(name) void name(Display *, awesome_config *) + #endif diff --git a/layouts/floating.h b/layouts/floating.h index 25214b17..01ada9ea 100644 --- a/layouts/floating.h +++ b/layouts/floating.h @@ -23,6 +23,6 @@ #ifndef AWESOME_FLOATING_H #define AWESOME_FLOATING_H -void layout_floating(Display *, awesome_config *); /* floating layout */ +LAYOUT_PROTO(layout_floating); #endif diff --git a/layouts/max.h b/layouts/max.h index e3d5d5f1..04a4be4b 100644 --- a/layouts/max.h +++ b/layouts/max.h @@ -22,6 +22,8 @@ #ifndef AWESOME_MAX_H #define AWESOME_MAX_H -void layout_max(Display *, awesome_config *); +#include "common.h" + +LAYOUT_PROTO(layout_max); #endif diff --git a/layouts/tile.h b/layouts/tile.h index 02022989..5b25abfe 100644 --- a/layouts/tile.h +++ b/layouts/tile.h @@ -25,8 +25,8 @@ #include "common.h" -void layout_tile(Display *, awesome_config *); -void layout_tileleft(Display *, awesome_config *); +LAYOUT_PROTO(layout_tile); +LAYOUT_PROTO(layout_tileleft); UICB_PROTO(uicb_setnmaster); UICB_PROTO(uicb_setncols);