xref: /haiku/src/add-ons/kernel/file_systems/packagefs/package/PackageSymlink.h (revision 9a6a20d4689307142a7ed26a1437ba47e244e73f)
1 /*
2  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef PACKAGE_SYMLINK_H
6 #define PACKAGE_SYMLINK_H
7 
8 
9 #include "PackageLeafNode.h"
10 
11 
12 class PackageSymlink final : public PackageLeafNode {
13 public:
14 	static	void*				operator new(size_t size);
15 	static	void				operator delete(void* block);
16 
17 								PackageSymlink(Package* package, mode_t mode);
18 	virtual						~PackageSymlink();
19 
20 			void				SetSymlinkPath(const String& path);
21 
22 	virtual	String				SymlinkPath() const;
23 
24 private:
25 				String			fSymlinkPath;
26 };
27 
28 
29 #endif	// PACKAGE_SYMLINK_H
30