summaryrefslogtreecommitdiff
path: root/os/include/filesystem.h
blob: 4b50600a2c32ac191e0391a1eeb23312204ae4d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __FILESYSTEM_H__
#define __FILESYSTEM_H__

#include <stdint.h>
#include <hash-djb2.h>

#define MAX_FS 16

typedef int (*fs_open_t)(void * opaque, const char * fname, int flags, int mode);

int register_fs(const char * mountpoint, fs_open_t callback, void * opaque);
int fs_open(const char * path, int flags, int mode);

#endif