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/PackageEntry.h> 8 9 10 namespace BPackageKit { 11 12 namespace BHaikuPackage { 13 14 namespace BPrivate { 15 16 17 PackageEntry::PackageEntry(PackageEntry* 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 BPrivate 35 36 } // namespace BHaikuPackage 37 38 } // namespace BPackageKit 39