summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@iki.fi>2015-10-02 22:19:51 +0300
committerTomi Valkeinen <tomi.valkeinen@iki.fi>2015-10-03 16:59:19 +0300
commit4d1671bc8a3b429ac2c92969dd35ace75dbf8269 (patch)
treeedc41a0af273a961553f0324c7c84a74f894cdfc
parent3a41b320210c974658b81a10fd6b7f0cb385679d (diff)
libkmstest: cleanup headers
-rw-r--r--libkmstest/colorbar.h6
-rw-r--r--libkmstest/conv.cpp3
-rw-r--r--libkmstest/conv.h8
-rw-r--r--libkmstest/kmstest.h10
-rw-r--r--libkmstest/test.h4
-rw-r--r--libkmstest/testpat.cpp4
-rw-r--r--libkmstest/testpat.h6
-rw-r--r--lua/luakms.i4
-rw-r--r--py/pykms.i4
9 files changed, 17 insertions, 32 deletions
diff --git a/libkmstest/colorbar.h b/libkmstest/colorbar.h
deleted file mode 100644
index a47d64d..0000000
--- a/libkmstest/colorbar.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#pragma once
-
-namespace kms
-{
-void draw_color_bar(kms::DumbFramebuffer& buf, int old_xpos, int xpos, int width);
-}
diff --git a/libkmstest/conv.cpp b/libkmstest/conv.cpp
index b716020..f2f19ac 100644
--- a/libkmstest/conv.cpp
+++ b/libkmstest/conv.cpp
@@ -1,9 +1,8 @@
#include <drm_fourcc.h>
#include <stdexcept>
-#include "dumbframebuffer.h"
+#include "kms++.h"
#include "color.h"
-#include "conv.h"
namespace kms
{
diff --git a/libkmstest/conv.h b/libkmstest/conv.h
deleted file mode 100644
index 105aaf0..0000000
--- a/libkmstest/conv.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#pragma once
-
-namespace kms
-{
-class DumbFramebuffer;
-
-void color_convert(DumbFramebuffer& dst, const DumbFramebuffer &src);
-}
diff --git a/libkmstest/kmstest.h b/libkmstest/kmstest.h
new file mode 100644
index 0000000..a77f0ff
--- /dev/null
+++ b/libkmstest/kmstest.h
@@ -0,0 +1,10 @@
+#pragma once
+
+namespace kms
+{
+class DumbFramebuffer;
+
+void color_convert(DumbFramebuffer& dst, const DumbFramebuffer &src);
+void draw_color_bar(kms::DumbFramebuffer& buf, int old_xpos, int xpos, int width);
+void draw_test_pattern(DumbFramebuffer& fb);
+}
diff --git a/libkmstest/test.h b/libkmstest/test.h
index fbc4727..56ceb27 100644
--- a/libkmstest/test.h
+++ b/libkmstest/test.h
@@ -1,9 +1,7 @@
#pragma once
#include "color.h"
-#include "conv.h"
-#include "testpat.h"
-#include "colorbar.h"
+#include "kmstest.h"
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
diff --git a/libkmstest/testpat.cpp b/libkmstest/testpat.cpp
index 958d785..1516369 100644
--- a/libkmstest/testpat.cpp
+++ b/libkmstest/testpat.cpp
@@ -9,9 +9,7 @@
#include <drm.h>
#include <drm_mode.h>
-#include "card.h"
-#include "dumbframebuffer.h"
-#include "testpat.h"
+#include "kms++.h"
#include "color.h"
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
diff --git a/libkmstest/testpat.h b/libkmstest/testpat.h
deleted file mode 100644
index e051f4a..0000000
--- a/libkmstest/testpat.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#pragma once
-
-namespace kms
-{
-void draw_test_pattern(DumbFramebuffer& fb);
-}
diff --git a/lua/luakms.i b/lua/luakms.i
index 5530f84..cdf802b 100644
--- a/lua/luakms.i
+++ b/lua/luakms.i
@@ -2,7 +2,7 @@
%{
#include "kms++.h"
-#include "testpat.h"
+#include "kmstest.h"
using namespace kms;
%}
@@ -22,4 +22,4 @@ using namespace kms;
%include "connector.h"
%include "encoder.h"
-%include "testpat.h"
+%include "kmstest.h"
diff --git a/py/pykms.i b/py/pykms.i
index c71aced..1dcd0ca 100644
--- a/py/pykms.i
+++ b/py/pykms.i
@@ -2,7 +2,7 @@
%{
#include "kms++.h"
-#include "testpat.h"
+#include "kmstest.h"
using namespace kms;
%}
@@ -22,4 +22,4 @@ using namespace kms;
%include "connector.h"
%include "encoder.h"
-%include "testpat.h"
+%include "kmstest.h"