spoon

set dwm status
git clone git://git.2f30.org/spoon.git
Log | Files | Refs | LICENSE

commit b43a346a5f124f505181f58627bb51bb98877c75
parent 372ba92c8be6bf7c9fe6a21290c8cef103158c37
Author: sin <sin@2f30.org>
Date:   Thu, 13 Oct 2016 16:43:35 +0100

Add stub implementations for mpdread and xkblayoutread

If you want to build spoon without those plugins you can just
comment out

OBJ += xkblayout.o
LDLIBS += -lxkbfile

OBJ += mpd.o
LDLIBS += -lmpdclient

in the Makefile.

Diffstat:
Makefile | 4++--
stub.c | 15+++++++++++++++
2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,9 +1,9 @@ VERSION = 0.2 PREFIX = /usr/local SRC = spoon.c batt.c wifi.c cpu.c temp.c mix.c date.c load.c\ - strlcpy.c strlcat.c xkblayout.c mpd.c + strlcpy.c strlcat.c xkblayout.c mpd.c stub.c OBJ = spoon.o batt.o wifi.o cpu.o temp.o mix.o date.o load.o\ - strlcpy.o strlcat.o + strlcpy.o strlcat.o stub.o BIN = spoon DISTFILES = $(SRC) util.h config.def.h Makefile LICENSE configure diff --git a/stub.c b/stub.c @@ -0,0 +1,15 @@ +#include <stddef.h> + +#pragma weak mpdread +int +mpdread(char *buf, size_t len) +{ + return -1; +} + +#pragma weak xkblayoutread +int +xkblayoutread(char *buf, size_t len) +{ + return -1; +}