xref: /haiku/src/kits/package/hpkg/v1/PackageEntryV1.cpp (revision 83b1a68c52ba3e0e8796282759f694b7fdddf06d)
1 /*
2  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 
7 #include <package/hpkg/v1/PackageEntry.h>
8 
9 
10 namespace BPackageKit {
11 
12 namespace BHPKG {
13 
14 namespace V1 {
15 
16 
17 BPackageEntry::BPackageEntry(BPackageEntry* parent, const char* name)
18 	:
19 	fParent(parent),
20 	fName(name),
21 	fUserToken(NULL),
22 	fMode(S_IFREG | S_IRUSR | S_IRGRP | S_IROTH),
23 	fSymlinkPath(NULL)
24 {
25 	fAccessTime.tv_sec = 0;
26 	fAccessTime.tv_nsec = 0;
27 	fModifiedTime.tv_sec = 0;
28 	fModifiedTime.tv_nsec = 0;
29 	fCreationTime.tv_sec = 0;
30 	fCreationTime.tv_nsec = 0;
31 }
32 
33 
34 }	// namespace V1
35 
36 }	// namespace BHPKG
37 
38 }	// namespace BPackageKit
39