summaryrefslogtreecommitdiff
path: root/arm9/source/types/pathbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm9/source/types/pathbuf.h')
-rw-r--r--arm9/source/types/pathbuf.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/arm9/source/types/pathbuf.h b/arm9/source/types/pathbuf.h
new file mode 100644
index 0000000..7fd7251
--- /dev/null
+++ b/arm9/source/types/pathbuf.h
@@ -0,0 +1,18 @@
+#include <nds.h>
+
+#ifndef PATHBUF_H_
+ #define PATHBUF_H_
+
+ typedef struct {
+ u8 mem[255];
+ u8 p;
+ } PathBuf;
+
+ u8 pb_read(PathBuf *buf);
+ void pb_clear(PathBuf *buf);
+ void pb_reset(PathBuf *buf, bool to_name);
+ bool pb_push_byte(PathBuf *buf, u8 byte);
+ bool pb_is_terminated(PathBuf *buf);
+ void pb_populate(PathBuf *buf, u8 *path);
+
+#endif