aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-04-30 03:24:45 -0400
committerJesse Luehrs <doy@tozt.net>2016-04-30 03:24:45 -0400
commitdbf97387fec55692882cf093ddaf4037ca018da1 (patch)
tree8375ab27be5639c1714278280388b26b1c907bf0
parent04cf8dd207c79ee4331de684d1e9fc2bfa437547 (diff)
downloadrunes-dbf97387fec55692882cf093ddaf4037ca018da1.tar.gz
runes-dbf97387fec55692882cf093ddaf4037ca018da1.zip
split some more things out of runes.h
-rw-r--r--src/config.h2
-rw-r--r--src/display.h4
-rw-r--r--src/loop.h2
-rw-r--r--src/runes.h7
-rw-r--r--src/term.h2
-rw-r--r--src/util.h2
-rw-r--r--src/window-xlib.h1
7 files changed, 13 insertions, 7 deletions
diff --git a/src/config.h b/src/config.h
index 58b781b..b718f8b 100644
--- a/src/config.h
+++ b/src/config.h
@@ -1,6 +1,8 @@
#ifndef _RUNES_CONFIG_H
#define _RUNES_CONFIG_H
+#include <cairo.h>
+
struct runes_config {
cairo_pattern_t *mousecursorcolor;
cairo_pattern_t *cursorcolor;
diff --git a/src/display.h b/src/display.h
index 1491cb9..cbd65e5 100644
--- a/src/display.h
+++ b/src/display.h
@@ -1,6 +1,10 @@
#ifndef _RUNES_DISPLAY_H
#define _RUNES_DISPLAY_H
+#include <cairo.h>
+#include <pango/pangocairo.h>
+#include <vt100.h>
+
struct runes_display {
cairo_t *cr;
PangoLayout *layout;
diff --git a/src/loop.h b/src/loop.h
index 4f06cd7..215b56c 100644
--- a/src/loop.h
+++ b/src/loop.h
@@ -1,6 +1,8 @@
#ifndef _RUNES_LOOP_H
#define _RUNES_LOOP_H
+#include <uv.h>
+
struct runes_loop {
uv_loop_t *loop;
};
diff --git a/src/runes.h b/src/runes.h
index 5bc91d4..62f4536 100644
--- a/src/runes.h
+++ b/src/runes.h
@@ -1,11 +1,6 @@
#ifndef _RUNES_H
#define _RUNES_H
-#include <cairo.h>
-#include <pango/pangocairo.h>
-#include <uv.h>
-#include <vt100.h>
-
#define RUNES_READ_BUFFER_LENGTH 4096
struct runes_term;
@@ -36,6 +31,4 @@ typedef struct runes_loop_data RunesLoopData;
#include "term.h"
-#define UNUSED(x) ((void)x)
-
#endif
diff --git a/src/term.h b/src/term.h
index 7393b0a..be3ae99 100644
--- a/src/term.h
+++ b/src/term.h
@@ -1,6 +1,8 @@
#ifndef _RUNES_TERM_H
#define _RUNES_TERM_H
+#include <vt100.h>
+
struct runes_term {
RunesWindowBackend w;
RunesPtyBackend pty;
diff --git a/src/util.h b/src/util.h
index f542261..183f8c5 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,6 +1,8 @@
#ifndef _RUNES_UTIL_H
#define _RUNES_UTIL_H
+#define UNUSED(x) ((void)x)
+
void runes_warn(const char *fmt, ...);
#endif
diff --git a/src/window-xlib.h b/src/window-xlib.h
index e376f91..5431244 100644
--- a/src/window-xlib.h
+++ b/src/window-xlib.h
@@ -1,6 +1,7 @@
#ifndef _RUNES_WINDOW_XLIB_H
#define _RUNES_XLIB_H
+#include <cairo.h>
#include <X11/Xlib.h>
enum runes_atoms {