blob: 65b3c965cbf7ad71fcfe0a096a3cee205410bb35 [file] [log] [blame]
Jeff Thompson76317aa2013-06-25 19:11:48 -07001/*
2 * Author: Jeff Thompson
3 *
4 * BSD license, See the LICENSE file for more information.
5 */
6
7#ifndef NDN_BINARYXML_H
8#define NDN_BINARYXML_H
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14const int ndn_BinaryXML_EXT = 0x00;
15const int ndn_BinaryXML_TAG = 0x01;
16const int ndn_BinaryXML_DTAG = 0x02;
17const int ndn_BinaryXML_ATTR = 0x03;
18const int ndn_BinaryXML_DATTR = 0x04;
19const int ndn_BinaryXML_BLOB = 0x05;
20const int ndn_BinaryXML_UDATA = 0x06;
21const int ndn_BinaryXML_CLOSE = 0x0;
22
23const int ndn_BinaryXML_TT_BITS = 3;
24const int ndn_BinaryXML_TT_MASK = 0x07;
25const int ndn_BinaryXML_TT_VALUE_BITS = 4;
26const int ndn_BinaryXML_TT_VALUE_MASK = 0x0f;
27const int ndn_BinaryXML_REGULAR_VALUE_BITS = 7;
28const int ndn_BinaryXML_REGULAR_VALUE_MASK = 0x7f;
29const int ndn_BinaryXML_TT_FINAL = 0x80;
30
31const int ndn_BinaryXML_DTag_Any = 13;
32const int ndn_BinaryXML_DTag_Name = 14;
33const int ndn_BinaryXML_DTag_Component = 15;
34const int ndn_BinaryXML_DTag_Certificate = 16;
35const int ndn_BinaryXML_DTag_Collection = 17;
36const int ndn_BinaryXML_DTag_CompleteName = 18;
37const int ndn_BinaryXML_DTag_Content = 19;
38const int ndn_BinaryXML_DTag_SignedInfo = 20;
39const int ndn_BinaryXML_DTag_ContentDigest = 21;
40const int ndn_BinaryXML_DTag_ContentHash = 22;
41const int ndn_BinaryXML_DTag_Count = 24;
42const int ndn_BinaryXML_DTag_Header = 25;
43const int ndn_BinaryXML_DTag_Interest = 26; /* 20090915 */
44const int ndn_BinaryXML_DTag_Key = 27;
45const int ndn_BinaryXML_DTag_KeyLocator = 28;
46const int ndn_BinaryXML_DTag_KeyName = 29;
47const int ndn_BinaryXML_DTag_Length = 30;
48const int ndn_BinaryXML_DTag_Link = 31;
49const int ndn_BinaryXML_DTag_LinkAuthenticator = 32;
50const int ndn_BinaryXML_DTag_NameComponentCount = 33; /* DeprecatedInInterest */
51const int ndn_BinaryXML_DTag_RootDigest = 36;
52const int ndn_BinaryXML_DTag_Signature = 37;
53const int ndn_BinaryXML_DTag_Start = 38;
54const int ndn_BinaryXML_DTag_Timestamp = 39;
55const int ndn_BinaryXML_DTag_Type = 40;
56const int ndn_BinaryXML_DTag_Nonce = 41;
57const int ndn_BinaryXML_DTag_Scope = 42;
58const int ndn_BinaryXML_DTag_Exclude = 43;
59const int ndn_BinaryXML_DTag_Bloom = 44;
60const int ndn_BinaryXML_DTag_BloomSeed = 45;
61const int ndn_BinaryXML_DTag_AnswerOriginKind = 47;
62const int ndn_BinaryXML_DTag_InterestLifetime = 48;
63const int ndn_BinaryXML_DTag_Witness = 53;
64const int ndn_BinaryXML_DTag_SignatureBits = 54;
65const int ndn_BinaryXML_DTag_DigestAlgorithm = 55;
66const int ndn_BinaryXML_DTag_BlockSize = 56;
67const int ndn_BinaryXML_DTag_FreshnessSeconds = 58;
68const int ndn_BinaryXML_DTag_FinalBlockID = 59;
69const int ndn_BinaryXML_DTag_PublisherPublicKeyDigest = 60;
70const int ndn_BinaryXML_DTag_PublisherCertificateDigest = 61;
71const int ndn_BinaryXML_DTag_PublisherIssuerKeyDigest = 62;
72const int ndn_BinaryXML_DTag_PublisherIssuerCertificateDigest = 63;
73const int ndn_BinaryXML_DTag_ContentObject = 64; /* 20090915 */
74const int ndn_BinaryXML_DTag_WrappedKey = 65;
75const int ndn_BinaryXML_DTag_WrappingKeyIdentifier = 66;
76const int ndn_BinaryXML_DTag_WrapAlgorithm = 67;
77const int ndn_BinaryXML_DTag_KeyAlgorithm = 68;
78const int ndn_BinaryXML_DTag_Label = 69;
79const int ndn_BinaryXML_DTag_EncryptedKey = 70;
80const int ndn_BinaryXML_DTag_EncryptedNonceKey = 71;
81const int ndn_BinaryXML_DTag_WrappingKeyName = 72;
82const int ndn_BinaryXML_DTag_Action = 73;
83const int ndn_BinaryXML_DTag_FaceID = 74;
84const int ndn_BinaryXML_DTag_IPProto = 75;
85const int ndn_BinaryXML_DTag_Host = 76;
86const int ndn_BinaryXML_DTag_Port = 77;
87const int ndn_BinaryXML_DTag_MulticastInterface = 78;
88const int ndn_BinaryXML_DTag_ForwardingFlags = 79;
89const int ndn_BinaryXML_DTag_FaceInstance = 80;
90const int ndn_BinaryXML_DTag_ForwardingEntry = 81;
91const int ndn_BinaryXML_DTag_MulticastTTL = 82;
92const int ndn_BinaryXML_DTag_MinSuffixComponents = 83;
93const int ndn_BinaryXML_DTag_MaxSuffixComponents = 84;
94const int ndn_BinaryXML_DTag_ChildSelector = 85;
95const int ndn_BinaryXML_DTag_RepositoryInfo = 86;
96const int ndn_BinaryXML_DTag_Version = 87;
97const int ndn_BinaryXML_DTag_RepositoryVersion = 88;
98const int ndn_BinaryXML_DTag_GlobalPrefix = 89;
99const int ndn_BinaryXML_DTag_LocalName = 90;
100const int ndn_BinaryXML_DTag_Policy = 91;
101const int ndn_BinaryXML_DTag_Namespace = 92;
102const int ndn_BinaryXML_DTag_GlobalPrefixName = 93;
103const int ndn_BinaryXML_DTag_PolicyVersion = 94;
104const int ndn_BinaryXML_DTag_KeyValueSet = 95;
105const int ndn_BinaryXML_DTag_KeyValuePair = 96;
106const int ndn_BinaryXML_DTag_IntegerValue = 97;
107const int ndn_BinaryXML_DTag_DecimalValue = 98;
108const int ndn_BinaryXML_DTag_StringValue = 99;
109const int ndn_BinaryXML_DTag_BinaryValue = 100;
110const int ndn_BinaryXML_DTag_NameValue = 101;
111const int ndn_BinaryXML_DTag_Entry = 102;
112const int ndn_BinaryXML_DTag_ACL = 103;
113const int ndn_BinaryXML_DTag_ParameterizedName = 104;
114const int ndn_BinaryXML_DTag_Prefix = 105;
115const int ndn_BinaryXML_DTag_Suffix = 106;
116const int ndn_BinaryXML_DTag_Root = 107;
117const int ndn_BinaryXML_DTag_ProfileName = 108;
118const int ndn_BinaryXML_DTag_Parameters = 109;
119const int ndn_BinaryXML_DTag_InfoString = 110;
120const int ndn_BinaryXML_DTag_StatusResponse = 112;
121const int ndn_BinaryXML_DTag_StatusCode = 113;
122const int ndn_BinaryXML_DTag_StatusText = 114;
123const int ndn_BinaryXML_DTag_SyncNode = 115;
124const int ndn_BinaryXML_DTag_SyncNodeKind = 116;
125const int ndn_BinaryXML_DTag_SyncNodeElement = 117;
126const int ndn_BinaryXML_DTag_SyncVersion = 118;
127const int ndn_BinaryXML_DTag_SyncNodeElements = 119;
128const int ndn_BinaryXML_DTag_SyncContentHash = 120;
129const int ndn_BinaryXML_DTag_SyncLeafCount = 121;
130const int ndn_BinaryXML_DTag_SyncTreeDepth = 122;
131const int ndn_BinaryXML_DTag_SyncByteCount = 123;
132const int ndn_BinaryXML_DTag_SyncConfigSlice = 124;
133const int ndn_BinaryXML_DTag_SyncConfigSliceList = 125;
134const int ndn_BinaryXML_DTag_SyncConfigSliceOp = 126;
135const int ndn_BinaryXML_DTag_SyncNodeDeltas = 127;
136const int ndn_BinaryXML_DTag_SequenceNumber = 256;
137const int ndn_BinaryXML_DTag_CCNProtocolDataUnit = 17702112;
138
139#ifdef __cplusplus
140}
141#endif
142
143#endif