summaryrefslogtreecommitdiff
path: root/arm9/source/types/pathbuf.h
blob: 7fd725133117a87a843f336b0bc3535c186c730d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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