]> git.saurik.com Git - apple/hfs.git/blame - livefiles_hfs_plugin/lf_hfs_xattr.h
hfs-522.100.5.tar.gz
[apple/hfs.git] / livefiles_hfs_plugin / lf_hfs_xattr.h
CommitLineData
de8ee011
A
1/* Copyright © 2017-2018 Apple Inc. All rights reserved.
2 *
3 * lf_hfs_xattr.h
4 * livefiles_hfs
5 *
6 * Created by Or Haimovich on 28/3/18.
7 */
8#ifndef lf_hfs_xattr_h
9#define lf_hfs_xattr_h
10
11#include "lf_hfs_vnode.h"
12#include "lf_hfs_format.h"
13#include <UserFS/UserVFS.h>
14
15int hfs_attrkeycompare(HFSPlusAttrKey *searchKey, HFSPlusAttrKey *trialKey);
16int init_attrdata_vnode(struct hfsmount *hfsmp);
17int file_attribute_exist(struct hfsmount *hfsmp, uint32_t fileID);
18int hfs_buildattrkey(u_int32_t fileID, const char *attrname, HFSPlusAttrKey *key);
19int hfs_removeallattr(struct hfsmount *hfsmp, u_int32_t fileid, bool *open_transaction);
20int hfs_vnop_getxattr(vnode_t vp, const char *attr_name, void *buf, size_t bufsize, size_t *actual_size);
21int hfs_vnop_setxattr(vnode_t vp, const char *attr_name, const void *buf, size_t bufsize, UVFSXattrHow How);
22int hfs_vnop_removexattr(vnode_t vp, const char *attr_name);
23int hfs_vnop_listxattr(vnode_t vp, void *buf, size_t bufsize, size_t *actual_size);
24
25#endif /* lf_hfs_xattr_h */