mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-25 16:16:50 +03:00
befac9b242
git-svn-id: svn://kolibrios.org@5936 a494cfbc-eb01-0410-851d-a64ba20cac60
23 lines
385 B
C
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_}; |