]> git.tdb.fi Git - gldbg.git/blobdiff - source/gldbg.h
Add gldbg program
[gldbg.git] / source / gldbg.h
diff --git a/source/gldbg.h b/source/gldbg.h
new file mode 100644 (file)
index 0000000..9f26de3
--- /dev/null
@@ -0,0 +1,38 @@
+/* $Id$
+
+This file is part of gldbg
+Copyright © 2009  Mikko Rasa, Mikkosoft Productions
+Distributed under the GPL
+*/
+
+#ifndef GLDBG_H_
+#define GLDBG_H_
+
+#include <string>
+#include <vector>
+#include <msp/core/application.h>
+#include <msp/fs/path.h>
+#include "glstate.h"
+
+class GlDbg: public Msp::Application
+{
+private:
+       Msp::FS::Path libdir;
+       int pid;
+       std::vector<std::string> args;
+       int sock_fd;
+       std::string buffer;
+       unsigned buf_offset;
+       GlDecoder *glprint;
+
+       static RegApp<GlDbg> reg;
+
+public:
+       GlDbg(int, char **);
+       int main();
+private:
+       void tick();
+       void launch();
+};
+
+#endif