1// 2// This file is part of the aMule Project. 3// 4// Copyright (c) 2004-2011 aMule Team ( admin@amule.org / http://www.amule.org ) 5// 6// Any parts of this program derived from the xMule, lMule or eMule project, 7// or contributed by third-party developers are copyrighted by their 8// respective authors. 9// 10// This program is free software; you can redistribute it and/or modify 11// it under the terms of the GNU General Public License as published by 12// the Free Software Foundation; either version 2 of the License, or 13// (at your option) any later version. 14// 15// This program is distributed in the hope that it will be useful, 16// but WITHOUT ANY WARRANTY; without even the implied warranty of 17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18// GNU General Public License for more details. 19// 20// You should have received a copy of the GNU General Public License 21// along with this program; if not, write to the Free Software 22// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 23 24// Purpose: 25// EC tag types for use on the ec library. 26 27#ifndef __ECTAGTYPES_H__ 28#define __ECTAGTYPES_H__ 29 30enum ECTagTypes { 31 EC_TAGTYPE_UNKNOWN = 0, 32 EC_TAGTYPE_CUSTOM = 1, 33 EC_TAGTYPE_UINT8 = 2, 34 EC_TAGTYPE_UINT16 = 3, 35 EC_TAGTYPE_UINT32 = 4, 36 EC_TAGTYPE_UINT64 = 5, 37 EC_TAGTYPE_STRING = 6, 38 EC_TAGTYPE_DOUBLE = 7, 39 EC_TAGTYPE_IPV4 = 8, 40 EC_TAGTYPE_HASH16 = 9 41}; 42 43#ifdef DEBUG_EC_IMPLEMENTATION 44 45wxString GetDebugNameECTagTypes(uint8 arg) 46{ 47 switch (arg) { 48 case 0: return wxT("EC_TAGTYPE_UNKNOWN"); 49 case 1: return wxT("EC_TAGTYPE_CUSTOM"); 50 case 2: return wxT("EC_TAGTYPE_UINT8"); 51 case 3: return wxT("EC_TAGTYPE_UINT16"); 52 case 4: return wxT("EC_TAGTYPE_UINT32"); 53 case 5: return wxT("EC_TAGTYPE_UINT64"); 54 case 6: return wxT("EC_TAGTYPE_STRING"); 55 case 7: return wxT("EC_TAGTYPE_DOUBLE"); 56 case 8: return wxT("EC_TAGTYPE_IPV4"); 57 case 9: return wxT("EC_TAGTYPE_HASH16"); 58 default: return CFormat(wxT("unknown %d 0x%x")) % arg % arg; 59 } 60} 61 62#endif // DEBUG_EC_IMPLEMENTATION 63 64#endif // __ECTAGTYPES_H__ 65