summaryrefslogtreecommitdiff
path: root/includes/console.h
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-04-23 12:41:08 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-04-25 11:07:55 (GMT)
commit7b82eae82e770410feeed841b7e2c05c7e20d9da (patch)
tree5f933f239676718957966dc3b62b96720f68de14 /includes/console.h
parentaef09292ee83479571524e4900c903af03efe7e5 (diff)
downloadpowder-7b82eae82e770410feeed841b7e2c05c7e20d9da.zip
powder-7b82eae82e770410feeed841b7e2c05c7e20d9da.tar.gz
Jacksonmj: Move console functions into seperate file
Diffstat (limited to 'includes/console.h')
-rw-r--r--includes/console.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/includes/console.h b/includes/console.h
new file mode 100644
index 0000000..c1352f4
--- /dev/null
+++ b/includes/console.h
@@ -0,0 +1,27 @@
+#ifndef CONSOLE_H
+#define CONSOLE_H
+
+#include <defines.h>
+#ifdef PYCONSOLE
+#include "Python.h"
+//#include "pystdlib.h"
+#include <marshal.h>
+#endif
+
+extern char pyready, pygood, console_more;
+extern char console_error[];
+extern int file_script;
+#ifdef PYCONSOLE
+extern PyMethodDef EmbMethods[];
+#endif
+
+int console_parse_coords(char *txt, int *x, int *y, char *err);
+int console_parse_type(char *txt, int *element, char *err);
+int console_parse_partref(char *txt, int *which, char *err);
+
+#ifdef PYCONSOLE
+int process_command(pixel *vid_buf, char *console, char *console_error, PyObject *pfunc);
+#endif
+int process_command_old(pixel *vid_buf, char *console, char *console_error);
+
+#endif