From ace0aa15bf64db38914617a05774736c9e6f594e Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Wed, 16 Mar 2016 08:45:19 +0100 Subject: header --- slstatus.c | 26 ++------------------------ slstatus.h | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 24 deletions(-) create mode 100644 slstatus.h diff --git a/slstatus.c b/slstatus.c index d6f5e2d..76df821 100644 --- a/slstatus.c +++ b/slstatus.c @@ -15,30 +15,8 @@ #include #include -/* global variables */ -static Display *dpy; - -/* statusbar configuration type and struct */ -typedef char *(*op_fun) (const char *); -struct arg { - op_fun func; - const char *format; - const char *args; -}; - -/* functions */ -void setstatus(const char *); -char *smprintf(const char *, ...); -char *get_battery(const char *); -char *get_cpu_temperature(const char *); -char *get_cpu_usage(const char *); -char *get_datetime(const char *); -char *get_diskusage(const char *); -char *get_ram_usage(const char *); -char *get_volume(const char *); -char *get_wifi_signal(const char *); - -/* include config header */ +/* local headers */ +#include "slstatus.h" #include "config.h" /* set statusbar */ diff --git a/slstatus.h b/slstatus.h new file mode 100644 index 0000000..fcf8b33 --- /dev/null +++ b/slstatus.h @@ -0,0 +1,22 @@ +/* global variables */ +static Display *dpy; + +/* statusbar configuration type and struct */ +typedef char *(*op_fun) (const char *); +struct arg { + op_fun func; + const char *format; + const char *args; +}; + +/* functions */ +void setstatus(const char *); +char *smprintf(const char *, ...); +char *get_battery(const char *); +char *get_cpu_temperature(const char *); +char *get_cpu_usage(const char *); +char *get_datetime(const char *); +char *get_diskusage(const char *); +char *get_ram_usage(const char *); +char *get_volume(const char *); +char *get_wifi_signal(const char *); -- cgit v1.2.3