summaryrefslogtreecommitdiff
path: root/src/tools/test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-15 00:14:28 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-15 00:14:28 +0100
commitbb767c7e338414beee132af3e96829c1448e214b (patch)
treebec2858dcc7225a9bcc2acd8170c25508f6df6cb /src/tools/test.cc
parent66c9be6bdb1361e5681e094a0c8170d268aa9518 (diff)
Move things round a bit.
Diffstat (limited to 'src/tools/test.cc')
-rw-r--r--src/tools/test.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tools/test.cc b/src/tools/test.cc
new file mode 100644
index 000000000..f81814160
--- /dev/null
+++ b/src/tools/test.cc
@@ -0,0 +1,15 @@
+#include <stdint.h>
+#include <boost/shared_ptr.hpp>
+#include "image.h"
+#include "server.h"
+
+using namespace boost;
+
+int main ()
+{
+ uint8_t* rgb = new uint8_t[256];
+ shared_ptr<Image> image (new Image (rgb, 0, 32, 32, 24));
+ Server* s = new Server ("localhost", 2);
+ image->encode_remotely (s);
+ return 0;
+}