summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2018-04-23 20:51:18 +0200
committerChristian Persch <chpe@src.gnome.org>2018-04-23 20:51:18 +0200
commitc3755f9a9dcc8a41b1bf9a90e11f0f69ca768d98 (patch)
tree97b91744b62635ed218e0f0b45908b25d85f4b97
parent728684cd7db14960ba8cc9aa631163dea1c512c2 (diff)
downloadvte-c3755f9a9dcc8a41b1bf9a90e11f0f69ca768d98.tar.gz
ring: Move some types to ring.cc
These types are only used internally by the ring and only in this one file, so there is no need to put them into the header.
-rw-r--r--src/ring.cc5
-rw-r--r--src/ring.hh6
-rw-r--r--src/vte.cc1
3 files changed, 6 insertions, 6 deletions
diff --git a/src/ring.cc b/src/ring.cc
index 55b61aa6..449e525a 100644
--- a/src/ring.cc
+++ b/src/ring.cc
@@ -25,6 +25,11 @@
#include <string.h>
+typedef struct _VteCellAttrChange {
+ gsize text_end_offset; /* offset of first character no longer using this attr */
+ VteStreamCellAttr attr;
+} VteCellAttrChange;
+
/*
* VteRing: A buffer ring
*/
diff --git a/src/ring.hh b/src/ring.hh
index 6795a1f2..b5df883e 100644
--- a/src/ring.hh
+++ b/src/ring.hh
@@ -37,12 +37,6 @@ typedef struct _VteVisualPosition {
long row, col;
} VteVisualPosition;
-typedef struct _VteCellAttrChange {
- gsize text_end_offset; /* offset of first character no longer using this attr */
- VteStreamCellAttr attr;
-} VteCellAttrChange;
-
-
/*
* VteRing: A scrollback buffer ring
*/
diff --git a/src/vte.cc b/src/vte.cc
index c78060d6..70dc0810 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -43,6 +43,7 @@
#include "vtedraw.hh"
#include "reaper.hh"
#include "ring.hh"
+#include "caps.hh"
#ifdef HAVE_WCHAR_H
#include <wchar.h>