diff options
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | src/pipe.h | 1 | ||||
| -rw-r--r-- | src/tsar.c | 10 |
3 files changed, 8 insertions, 7 deletions
@@ -4,8 +4,8 @@ LDFLAGS+=-lX11 -lxcb TSAR_OUT=tsarbar -HEADERS= -SRC=src/tsar.c +HEADERS=src/pipe.h +SRC=src/tsar.c src/pipe.c .PHONY: default run clean @@ -5,6 +5,7 @@ #define PIPE_PATH "/tmp/tsarc.pipe" #define MAX_ARG_LEN 256 #define MAX_ARGS 4 + void init_pipe(); void await_change(); void make_change(char[MAX_ARGS][MAX_ARG_LEN], int); @@ -1,15 +1,15 @@ +#include <stdarg.h> +#include <stdbool.h> #include <stdio.h> #include <stdlib.h> -#include <unistd.h> -#include <stdbool.h> -#include <stdarg.h> #include <string.h> +#include <unistd.h> -#include "pipe.c" -#include "pipe.h" #include <xcb/xcb.h> // #include <X11/Xft/Xft.h> +#include "pipe.h" + xcb_connection_t* connection; xcb_screen_t* screen; xcb_window_t win; |
