1/* 2 * Copyright 2009-2011, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7#include <package/hpkg/PackageContentHandler.h> 8 9 10namespace BPackageKit { 11 12namespace BHPKG { 13 14 15// #pragma mark - BLowLevelPackageContentHandler 16 17 18static const char* kAttributeNames[B_HPKG_ATTRIBUTE_ID_ENUM_COUNT + 1] = { 19 #define B_DEFINE_HPKG_ATTRIBUTE(id, type, name, constant) \ 20 name, 21 #include <package/hpkg/PackageAttributes.h> 22 #undef B_DEFINE_HPKG_ATTRIBUTE 23 // 24 NULL // B_HPKG_ATTRIBUTE_ID_ENUM_COUNT 25}; 26 27 28BLowLevelPackageContentHandler::~BLowLevelPackageContentHandler() 29{ 30} 31 32 33/*static*/ const char* 34BLowLevelPackageContentHandler::AttributeNameForID(uint8 id) 35{ 36 if (id >= B_HPKG_ATTRIBUTE_ID_ENUM_COUNT) 37 return NULL; 38 39 return kAttributeNames[id]; 40} 41 42 43// #pragma mark - BPackageContentHandler 44 45 46BPackageContentHandler::~BPackageContentHandler() 47{ 48} 49 50 51} // namespace BHPKG 52 53} // namespace BPackageKit 54