aboutsummaryrefslogtreecommitdiffstats
path: root/buffers.h
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-10-30 21:29:30 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-10-30 21:29:30 +0000
commit62f81e5cafbacfb90ac0f86e52e8e3176aa5ba8f (patch)
tree8f8f6028fa880b3296b1e42bc8d87cead73aaf78 /buffers.h
downloaddhex-62f81e5cafbacfb90ac0f86e52e8e3176aa5ba8f.tar.gz
Imported Upstream version 0.65upstream/0.65
Diffstat (limited to '')
-rw-r--r--buffers.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/buffers.h b/buffers.h
new file mode 100644
index 0000000..7bcdd1d
--- /dev/null
+++ b/buffers.h
@@ -0,0 +1,22 @@
+#ifndef BUFFERS_H
+#define BUFFERS_H
+
+#include <stdio.h>
+#include <stdlib.h>
+#include "machine_type.h"
+#include "config.h"
+#include "datatypes.h"
+
+// opens a buffer, bufnum has to be either 1 or 2
+tUInt32 openbuf(tBuffer* hBuf,tUInt8 bufnum,char* filename);
+
+// reads into the buffer, if the need arises
+tUInt32 readbuf(tBuffer* hBuf,tInt64 pos);
+
+// get the index of the file position within the buffer
+tInt32 getbufferidx(tBuffer* hBuf,tInt64 pos);
+
+
+tInt8 savechanges(tBuffer* hBuf);
+
+#endif