]> git.saurik.com Git - apple/hfs.git/blame - livefiles_hfs_plugin/lf_hfs_link.h
hfs-522.100.5.tar.gz
[apple/hfs.git] / livefiles_hfs_plugin / lf_hfs_link.h
CommitLineData
de8ee011
A
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
16void hfs_relorigin(struct cnode *cp, cnid_t parentcnid);
17void hfs_savelinkorigin(cnode_t *cp, cnid_t parentcnid);
18void hfs_privatedir_init(struct hfsmount * hfsmp, enum privdirtype type);
19int hfs_lookup_lastlink (struct hfsmount *hfsmp, cnid_t linkfileid, cnid_t *lastid, struct cat_desc *cdesc);
20int hfs_unlink(struct hfsmount *hfsmp, struct vnode *dvp, struct vnode *vp, struct componentname *cnp, int skip_reserve);
21void hfs_relorigins(struct cnode *cp);
22int hfs_makelink(struct hfsmount *hfsmp, struct vnode *src_vp, struct cnode *cp,struct cnode *dcp, struct componentname *cnp);
23cnid_t hfs_currentparent(cnode_t *cp, bool have_lock);
24#endif /* lf_hfs_link_h */