aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pipe.h1
-rw-r--r--src/tsar.c10
2 files changed, 6 insertions, 5 deletions
diff --git a/src/pipe.h b/src/pipe.h
index 798a4a1..3f81432 100644
--- a/src/pipe.h
+++ b/src/pipe.h
@@ -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);
diff --git a/src/tsar.c b/src/tsar.c
index b4f9fb2..426ad35 100644
--- a/src/tsar.c
+++ b/src/tsar.c
@@ -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;