add a LAYOUT_PROTO to common.h and use it
This commit is contained in:
parent
1437f54711
commit
8592058e00
3
common.h
3
common.h
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue