]> git.saurik.com Git - apple/hfs.git/blob - livefiles_hfs_plugin/lf_hfs_link.h
hfs-556.100.11.tar.gz
[apple/hfs.git] / livefiles_hfs_plugin / lf_hfs_link.h
1 /* Copyright © 2017-2018 Apple Inc. All rights reserved.
2 *
3 * lf_hfs_link.h
4 * livefiles_hfs
5 *
6 * Created by Or Haimovich on 17/05/2018.
7 */
8
9 #ifndef lf_hfs_link_h
10 #define lf_hfs_link_h
11
12 #include "lf_hfs_catalog.h"
13 #include "lf_hfs_cnode.h"
14 #include "lf_hfs.h"
15
16 void hfs_relorigin(struct cnode *cp, cnid_t parentcnid);
17 void hfs_savelinkorigin(cnode_t *cp, cnid_t parentcnid);
18 void hfs_privatedir_init(struct hfsmount * hfsmp, enum privdirtype type);
19 int hfs_lookup_lastlink (struct hfsmount *hfsmp, cnid_t linkfileid, cnid_t *lastid, struct cat_desc *cdesc);
20 int hfs_unlink(struct hfsmount *hfsmp, struct vnode *dvp, struct vnode *vp, struct componentname *cnp, int skip_reserve);
21 void hfs_relorigins(struct cnode *cp);
22 int hfs_makelink(struct hfsmount *hfsmp, struct vnode *src_vp, struct cnode *cp,struct cnode *dcp, struct componentname *cnp);
23 cnid_t hfs_currentparent(cnode_t *cp, bool have_lock);
24 #endif /* lf_hfs_link_h */