2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
10 # $Id: dir.h 577 2004-09-14 14:41:46Z pixel $
16 pfs_cache_t
*getDentry(pfs_cache_t
*clink
, char *path
, pfs_dentry
**dentry
, u32
*size
, int option
);
17 pfs_cache_t
*getDentriesChunk(pfs_blockpos_t
*position
, int *result
);
18 int getNextDentry(pfs_cache_t
*clink
, pfs_blockpos_t
*blockpos
, u32
*position
, char *name
, pfs_blockinfo
*bi
);
19 pfs_cache_t
*getDentriesAtPos(pfs_cache_t
*clink
, u64 position
, int *offset
, int *result
);
20 pfs_cache_t
*fillInDentry(pfs_cache_t
*clink
, pfs_dentry
*dentry
, char *path1
, pfs_blockinfo
*bi
, u32 len
, u16 mode
);
21 pfs_cache_t
*dirAddEntry(pfs_cache_t
*dir
, char *filename
, pfs_blockinfo
*bi
, u16 mode
, int *result
);
22 pfs_cache_t
*dirRemoveEntry(pfs_cache_t
*clink
, char *path
);
23 int checkDirForFiles(pfs_cache_t
*clink
);
24 void fillSelfAndParentDentries(pfs_cache_t
*clink
, pfs_blockinfo
*self
, pfs_blockinfo
*parent
);
25 pfs_cache_t
* setParent(pfs_cache_t
*clink
, pfs_blockinfo
*bi
, int *result
);