kolibrios/programs/develop/libraries/libs_v2/include/fs.h
pavelyakov befac9b242 source code library
git-svn-id: svn://kolibrios.org@5936 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-11-27 09:20:48 +00:00

23 lines
385 B
C

static struct FS
{
void *(*read)(char *path);
};
void *(* _stdcall _ptr_fs_read_)(char *path);
char _init_fs_ = 0;
void init_fs(void)
{
if(_init_fs_) return;
library.load("/sys/lib/fs.obj");
_ptr_fs_read_ = library.get("fs.read");
_init_fs_ = 1;
}
static inline dword _FS__READ_(char *name)
{
return _ptr_fs_read_(name);
}
struct FS fs = {&_FS__READ_};