]> git.saurik.com Git - apple/hfs.git/blame_incremental - livefiles_hfs_plugin/lf_hfs_dirops_handler.h
hfs-556.100.11.tar.gz
[apple/hfs.git] / livefiles_hfs_plugin / lf_hfs_dirops_handler.h
... / ...
CommitLineData
1/* Copyright © 2017-2018 Apple Inc. All rights reserved.
2 *
3 * lf_hfs_dirops_handler.h
4 * livefiles_hfs
5 *
6 * Created by Yakov Ben Zaken on 31/12/2017.
7*/
8
9#ifndef lf_hfs_dirpos_handler_h
10#define lf_hfs_dirpos_handler_h
11
12#include "lf_hfs_common.h"
13#include "lf_hfs_catalog.h"
14
15#define MAX_UTF8_NAME_LENGTH (NAME_MAX*3+1)
16
17int LFHFS_MkDir ( UVFSFileNode psDirNode, const char *pcName, const UVFSFileAttributes *psFileAttr, UVFSFileNode *ppsOutNode );
18int LFHFS_RmDir ( UVFSFileNode psDirNode, const char *pcUTF8Name );
19int LFHFS_Remove ( UVFSFileNode psDirNode, const char *pcUTF8Name, UVFSFileNode victimNode);
20int LFHFS_Lookup ( UVFSFileNode psDirNode, const char *pcUTF8Name, UVFSFileNode *ppsOutNode );
21int LFHFS_ReadDir ( UVFSFileNode psDirNode, void* pvBuf, size_t iBufLen, uint64_t uCookie, size_t *iReadBytes, uint64_t *puVerifier );
22int LFHFS_ReadDirAttr ( UVFSFileNode psDirNode, void *pvBuf, size_t iBufLen, uint64_t uCookie, size_t *iReadBytes, uint64_t *puVerifier );
23int LFHFS_ScanDir ( UVFSFileNode psDirNode, scandir_matching_request_t* psMatchingCriteria, scandir_matching_reply_t* psMatchingResult );
24int LFHFS_ScanIDs ( UVFSFileNode psNode, __unused uint64_t uRequestedAttributes, const uint64_t* puFileIDArray, unsigned int iFileIDCount, scanids_match_block_t fMatchCallback);
25
26int DIROPS_RemoveInternal( UVFSFileNode psDirNode, const char *pcUTF8Name );
27int DIROPS_LookupInternal( UVFSFileNode psDirNode, const char *pcUTF8Name, UVFSFileNode *ppsOutNode );
28#endif /* lf_hfs_dirpos_handler_h */