add a LAYOUT_PROTO to common.h and use it

This commit is contained in:
Julien Danjou 2007-09-24 14:59:29 +02:00
parent 1437f54711
commit 8592058e00
4 changed files with 9 additions and 4 deletions

View file

@ -27,4 +27,7 @@
/** Common prototype definition for ui_callbak functions */ /** Common prototype definition for ui_callbak functions */
#define UICB_PROTO(name) void name(Display *, DC *, awesome_config *, const char *) #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 #endif

View file

@ -23,6 +23,6 @@
#ifndef AWESOME_FLOATING_H #ifndef AWESOME_FLOATING_H
#define AWESOME_FLOATING_H #define AWESOME_FLOATING_H
void layout_floating(Display *, awesome_config *); /* floating layout */ LAYOUT_PROTO(layout_floating);
#endif #endif

View file

@ -22,6 +22,8 @@
#ifndef AWESOME_MAX_H #ifndef AWESOME_MAX_H
#define AWESOME_MAX_H #define AWESOME_MAX_H
void layout_max(Display *, awesome_config *); #include "common.h"
LAYOUT_PROTO(layout_max);
#endif #endif

View file

@ -25,8 +25,8 @@
#include "common.h" #include "common.h"
void layout_tile(Display *, awesome_config *); LAYOUT_PROTO(layout_tile);
void layout_tileleft(Display *, awesome_config *); LAYOUT_PROTO(layout_tileleft);
UICB_PROTO(uicb_setnmaster); UICB_PROTO(uicb_setnmaster);
UICB_PROTO(uicb_setncols); UICB_PROTO(uicb_setncols);