1//
2// This file is part of the aMule Project.
3//
4// Copyright (c) 2003-2011 aMule Team ( admin@amule.org / http://www.amule.org )
5// Copyright (c) 2002-2011 Merkur ( devs@emule-project.net / http://www.emule-project.net )
6//
7// Any parts of this program derived from the xMule, lMule or eMule project,
8// or contributed by third-party developers are copyrighted by their
9// respective authors.
10//
11// This program is free software; you can redistribute it and/or modify
12// it under the terms of the GNU General Public License as published by
13// the Free Software Foundation; either version 2 of the License, or
14// (at your option) any later version.
15//
16// This program is distributed in the hope that it will be useful,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19// GNU General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program; if not, write to the Free Software
23// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA
24//
25
26#ifndef COMMONTAGTYPES_H
27#define COMMONTAGTYPES_H
28
29enum Tag_Types {
30	TAGTYPE_HASH16		= 0x01,
31	TAGTYPE_STRING		= 0x02,
32	TAGTYPE_UINT32		= 0x03,
33	TAGTYPE_FLOAT32		= 0x04,
34	TAGTYPE_BOOL		= 0x05,
35	TAGTYPE_BOOLARRAY	= 0x06,
36	TAGTYPE_BLOB		= 0x07,
37	TAGTYPE_UINT16		= 0x08,
38	TAGTYPE_UINT8		= 0x09,
39	TAGTYPE_BSOB		= 0x0A,
40	TAGTYPE_UINT64		= 0x0B,
41
42	// Compressed string types
43	TAGTYPE_STR1		= 0x11,
44	TAGTYPE_STR2,
45	TAGTYPE_STR3,
46	TAGTYPE_STR4,
47	TAGTYPE_STR5,
48	TAGTYPE_STR6,
49	TAGTYPE_STR7,
50	TAGTYPE_STR8,
51	TAGTYPE_STR9,
52	TAGTYPE_STR10,
53	TAGTYPE_STR11,
54	TAGTYPE_STR12,
55	TAGTYPE_STR13,
56	TAGTYPE_STR14,
57	TAGTYPE_STR15,
58	TAGTYPE_STR16,
59	TAGTYPE_STR17,	// accepted by eMule 0.42f (02-Mai-2004) in receiving code
60			// only because of a flaw, those tags are handled correctly,
61			// but should not be handled at all
62	TAGTYPE_STR18,	// accepted by eMule 0.42f (02-Mai-2004) in receiving code
63			//  only because of a flaw, those tags are handled correctly,
64			// but should not be handled at all
65	TAGTYPE_STR19,	// accepted by eMule 0.42f (02-Mai-2004) in receiving code
66			// only because of a flaw, those tags are handled correctly,
67			// but should not be handled at all
68	TAGTYPE_STR20,	// accepted by eMule 0.42f (02-Mai-2004) in receiving code
69			// only because of a flaw, those tags are handled correctly,
70			// but should not be handled at all
71	TAGTYPE_STR21,	// accepted by eMule 0.42f (02-Mai-2004) in receiving code
72			// only because of a flaw, those tags are handled correctly,
73			// but should not be handled at all
74	TAGTYPE_STR22	// accepted by eMule 0.42f (02-Mai-2004) in receiving code
75			// only because of a flaw, those tags are handled correctly,
76			// but should not be handled at all
77};
78
79#endif // COMMONTAGTYPES_H
80