diff --git a/common.h b/common.h index 44ea87f61..ae83eb2bc 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 25214b17c..01ada9ea1 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 e3d5d5f16..04a4be4bb 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 020229896..5b25abfea 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);