Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. static struct FS
  3. {
  4.         void *(*read)(char *path);
  5. };
  6.  
  7.  
  8. void *(* _stdcall _ptr_fs_read_)(char *path);
  9.  
  10. char _init_fs_ = 0;
  11. void init_fs(void)
  12. {
  13.         if(_init_fs_) return;
  14.         library.load("/sys/lib/fs.obj");
  15.         _ptr_fs_read_ = library.get("fs.read");
  16.         _init_fs_ = 1;
  17. }
  18.  
  19. static inline dword _FS__READ_(char *name)
  20. {
  21.         return _ptr_fs_read_(name);
  22. }
  23. struct FS fs = {&_FS__READ_};