suckless coding style fix -> remove slstatus.h
This commit is contained in:
parent
c15e66ce77
commit
85dd971fb3
42
slstatus.c
42
slstatus.c
|
@ -24,8 +24,46 @@
|
|||
#include <unistd.h>
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
/* local headers */
|
||||
#include "slstatus.h"
|
||||
/* statusbar configuration type and struct */
|
||||
typedef char *(*op_fun) (const char *);
|
||||
struct arg {
|
||||
op_fun func;
|
||||
const char *format;
|
||||
const char *args;
|
||||
};
|
||||
|
||||
/* function declarations */
|
||||
void setstatus(const char *str);
|
||||
char *smprintf(const char *fmt, ...);
|
||||
char *battery_perc(const char *battery);
|
||||
char *cpu_perc(const char *null);
|
||||
char *datetime(const char *timeformat);
|
||||
char *disk_free(const char *mountpoint);
|
||||
char *disk_perc(const char *mountpoint);
|
||||
char *disk_total(const char *mountpoint);
|
||||
char *disk_used(const char *mountpoint);
|
||||
char *entropy(const char *null);
|
||||
char *gid(const char *null);
|
||||
char *hostname(const char *null);
|
||||
char *ip(const char *interface);
|
||||
char *load_avg(const char *null);
|
||||
char *ram_free(const char *null);
|
||||
char *ram_perc(const char *null);
|
||||
char *ram_used(const char *null);
|
||||
char *ram_total(const char *null);
|
||||
char *run_command(const char *command);
|
||||
char *temp(const char *file);
|
||||
char *uid(const char *null);
|
||||
char *uptime(const char *null);
|
||||
char *username(const char *null);
|
||||
char *vol_perc(const char *soundcard);
|
||||
char *wifi_perc(const char *wificard);
|
||||
char *wifi_essid(const char *wificard);
|
||||
|
||||
/* global variables */
|
||||
static Display *dpy;
|
||||
|
||||
/* configuration header */
|
||||
#include "config.h"
|
||||
|
||||
/* set statusbar */
|
||||
|
|
40
slstatus.h
40
slstatus.h
|
@ -1,40 +0,0 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
/* 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 *battery_perc(const char *);
|
||||
char *cpu_perc(const char *);
|
||||
char *datetime(const char *);
|
||||
char *disk_free(const char *);
|
||||
char *disk_perc(const char *);
|
||||
char *disk_total(const char *);
|
||||
char *disk_used(const char *);
|
||||
char *entropy(const char*);
|
||||
char *gid(const char*);
|
||||
char *hostname(const char *);
|
||||
char *ip(const char *);
|
||||
char *load_avg(const char *);
|
||||
char *ram_free(const char *);
|
||||
char *ram_perc(const char *);
|
||||
char *ram_used(const char *);
|
||||
char *ram_total(const char *);
|
||||
char *run_command(const char *);
|
||||
char *temp(const char *);
|
||||
char *uid(const char*);
|
||||
char *uptime(const char*);
|
||||
char *username(const char*);
|
||||
char *vol_perc(const char *);
|
||||
char *wifi_perc(const char *);
|
||||
char *wifi_essid(const char *);
|
Loading…
Reference in New Issue