Move 'Block' struct to header file
parent
c0fe3f2337
commit
be66a10a0a
|
@ -0,0 +1,6 @@
|
|||
typedef struct {
|
||||
char* icon;
|
||||
char* command;
|
||||
unsigned int interval;
|
||||
unsigned int signal;
|
||||
} Block;
|
|
@ -1,4 +1,5 @@
|
|||
//Modify this file to change what commands output to your statusbar, and recompile using the make command.
|
||||
#include "block.h"
|
||||
|
||||
static const Block blocks[] = {
|
||||
/*
|
||||
* Icon
|
||||
|
|
|
@ -18,12 +18,6 @@
|
|||
#define MIN( a, b ) ( ( a < b) ? a : b )
|
||||
#define STATUSLENGTH (LENGTH(blocks) * CMDLENGTH + 1)
|
||||
|
||||
typedef struct {
|
||||
char* icon;
|
||||
char* command;
|
||||
unsigned int interval;
|
||||
unsigned int signal;
|
||||
} Block;
|
||||
#ifndef __OpenBSD__
|
||||
void dummysighandler(int num);
|
||||
#endif
|
||||
|
@ -47,7 +41,6 @@ static Window root;
|
|||
static void (*writestatus) () = pstdout;
|
||||
#endif
|
||||
|
||||
|
||||
#include "blocks.h"
|
||||
|
||||
static char statusbar[LENGTH(blocks)][CMDLENGTH] = {0};
|
||||
|
|
Loading…
Reference in New Issue