Jeff Thompson | 47eecfc | 2013-07-07 22:56:46 -0700 | [diff] [blame] | 1 | /** |
| 2 | * @author: Jeff Thompson |
| 3 | * See COPYING for copyright and distribution information. |
Jeff Thompson | 76317aa | 2013-06-25 19:11:48 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef NDN_BINARYXML_H |
Jeff Thompson | a0d18c9 | 2013-08-06 13:55:32 -0700 | [diff] [blame] | 7 | #define NDN_BINARYXML_H |
Jeff Thompson | 76317aa | 2013-06-25 19:11:48 -0700 | [diff] [blame] | 8 | |
Jeff Thompson | a0d18c9 | 2013-08-06 13:55:32 -0700 | [diff] [blame] | 9 | #ifdef __cplusplus |
Jeff Thompson | 76317aa | 2013-06-25 19:11:48 -0700 | [diff] [blame] | 10 | extern "C" { |
| 11 | #endif |
| 12 | |
Jeff Thompson | c5f9d3f | 2013-06-26 21:31:12 -0700 | [diff] [blame] | 13 | enum { |
Jeff Thompson | a0d18c9 | 2013-08-06 13:55:32 -0700 | [diff] [blame] | 14 | ndn_BinaryXml_EXT = 0x00, |
Jeff Thompson | f0fea00 | 2013-07-30 17:22:42 -0700 | [diff] [blame] | 15 | ndn_BinaryXml_TAG = 0x01, |
| 16 | ndn_BinaryXml_DTAG = 0x02, |
| 17 | ndn_BinaryXml_ATTR = 0x03, |
| 18 | ndn_BinaryXml_DATTR = 0x04, |
| 19 | ndn_BinaryXml_BLOB = 0x05, |
| 20 | ndn_BinaryXml_UDATA = 0x06, |
| 21 | ndn_BinaryXml_CLOSE = 0x0, |
Jeff Thompson | 76317aa | 2013-06-25 19:11:48 -0700 | [diff] [blame] | 22 | |
Jeff Thompson | f0fea00 | 2013-07-30 17:22:42 -0700 | [diff] [blame] | 23 | ndn_BinaryXml_TT_BITS = 3, |
| 24 | ndn_BinaryXml_TT_MASK = ((1 << ndn_BinaryXml_TT_BITS) - 1), |
| 25 | ndn_BinaryXml_TT_VALUE_BITS = 4, |
| 26 | ndn_BinaryXml_TT_VALUE_MASK = ((1 << (ndn_BinaryXml_TT_VALUE_BITS)) - 1), |
| 27 | ndn_BinaryXml_REGULAR_VALUE_BITS = 7, |
| 28 | ndn_BinaryXml_REGULAR_VALUE_MASK = ((1 << ndn_BinaryXml_REGULAR_VALUE_BITS) - 1), |
| 29 | ndn_BinaryXml_TT_FINAL = 0x80, |
Jeff Thompson | 76317aa | 2013-06-25 19:11:48 -0700 | [diff] [blame] | 30 | |
Jeff Thompson | f0fea00 | 2013-07-30 17:22:42 -0700 | [diff] [blame] | 31 | ndn_BinaryXml_DTag_Any = 13, |
| 32 | ndn_BinaryXml_DTag_Name = 14, |
| 33 | ndn_BinaryXml_DTag_Component = 15, |
| 34 | ndn_BinaryXml_DTag_Certificate = 16, |
| 35 | ndn_BinaryXml_DTag_Collection = 17, |
| 36 | ndn_BinaryXml_DTag_CompleteName = 18, |
| 37 | ndn_BinaryXml_DTag_Content = 19, |
| 38 | ndn_BinaryXml_DTag_SignedInfo = 20, |
| 39 | ndn_BinaryXml_DTag_ContentDigest = 21, |
| 40 | ndn_BinaryXml_DTag_ContentHash = 22, |
| 41 | ndn_BinaryXml_DTag_Count = 24, |
| 42 | ndn_BinaryXml_DTag_Header = 25, |
Jeff Thompson | a0d18c9 | 2013-08-06 13:55:32 -0700 | [diff] [blame] | 43 | ndn_BinaryXml_DTag_Interest = 26, /* 20090915 */ |
Jeff Thompson | f0fea00 | 2013-07-30 17:22:42 -0700 | [diff] [blame] | 44 | ndn_BinaryXml_DTag_Key = 27, |
| 45 | ndn_BinaryXml_DTag_KeyLocator = 28, |
| 46 | ndn_BinaryXml_DTag_KeyName = 29, |
| 47 | ndn_BinaryXml_DTag_Length = 30, |
| 48 | ndn_BinaryXml_DTag_Link = 31, |
| 49 | ndn_BinaryXml_DTag_LinkAuthenticator = 32, |
Jeff Thompson | a0d18c9 | 2013-08-06 13:55:32 -0700 | [diff] [blame] | 50 | ndn_BinaryXml_DTag_NameComponentCount = 33, /* DeprecatedInInterest */ |
Jeff Thompson | f0fea00 | 2013-07-30 17:22:42 -0700 | [diff] [blame] | 51 | ndn_BinaryXml_DTag_RootDigest = 36, |
| 52 | ndn_BinaryXml_DTag_Signature = 37, |
| 53 | ndn_BinaryXml_DTag_Start = 38, |
| 54 | ndn_BinaryXml_DTag_Timestamp = 39, |
| 55 | ndn_BinaryXml_DTag_Type = 40, |
| 56 | ndn_BinaryXml_DTag_Nonce = 41, |
| 57 | ndn_BinaryXml_DTag_Scope = 42, |
| 58 | ndn_BinaryXml_DTag_Exclude = 43, |
| 59 | ndn_BinaryXml_DTag_Bloom = 44, |
| 60 | ndn_BinaryXml_DTag_BloomSeed = 45, |
| 61 | ndn_BinaryXml_DTag_AnswerOriginKind = 47, |
| 62 | ndn_BinaryXml_DTag_InterestLifetime = 48, |
| 63 | ndn_BinaryXml_DTag_Witness = 53, |
| 64 | ndn_BinaryXml_DTag_SignatureBits = 54, |
| 65 | ndn_BinaryXml_DTag_DigestAlgorithm = 55, |
| 66 | ndn_BinaryXml_DTag_BlockSize = 56, |
| 67 | ndn_BinaryXml_DTag_FreshnessSeconds = 58, |
| 68 | ndn_BinaryXml_DTag_FinalBlockID = 59, |
| 69 | ndn_BinaryXml_DTag_PublisherPublicKeyDigest = 60, |
| 70 | ndn_BinaryXml_DTag_PublisherCertificateDigest = 61, |
| 71 | ndn_BinaryXml_DTag_PublisherIssuerKeyDigest = 62, |
| 72 | ndn_BinaryXml_DTag_PublisherIssuerCertificateDigest = 63, |
Jeff Thompson | a0d18c9 | 2013-08-06 13:55:32 -0700 | [diff] [blame] | 73 | ndn_BinaryXml_DTag_ContentObject = 64, /* 20090915 */ |
Jeff Thompson | f0fea00 | 2013-07-30 17:22:42 -0700 | [diff] [blame] | 74 | ndn_BinaryXml_DTag_WrappedKey = 65, |
| 75 | ndn_BinaryXml_DTag_WrappingKeyIdentifier = 66, |
| 76 | ndn_BinaryXml_DTag_WrapAlgorithm = 67, |
| 77 | ndn_BinaryXml_DTag_KeyAlgorithm = 68, |
| 78 | ndn_BinaryXml_DTag_Label = 69, |
| 79 | ndn_BinaryXml_DTag_EncryptedKey = 70, |
| 80 | ndn_BinaryXml_DTag_EncryptedNonceKey = 71, |
| 81 | ndn_BinaryXml_DTag_WrappingKeyName = 72, |
| 82 | ndn_BinaryXml_DTag_Action = 73, |
| 83 | ndn_BinaryXml_DTag_FaceID = 74, |
| 84 | ndn_BinaryXml_DTag_IPProto = 75, |
| 85 | ndn_BinaryXml_DTag_Host = 76, |
| 86 | ndn_BinaryXml_DTag_Port = 77, |
| 87 | ndn_BinaryXml_DTag_MulticastInterface = 78, |
| 88 | ndn_BinaryXml_DTag_ForwardingFlags = 79, |
| 89 | ndn_BinaryXml_DTag_FaceInstance = 80, |
| 90 | ndn_BinaryXml_DTag_ForwardingEntry = 81, |
| 91 | ndn_BinaryXml_DTag_MulticastTTL = 82, |
| 92 | ndn_BinaryXml_DTag_MinSuffixComponents = 83, |
| 93 | ndn_BinaryXml_DTag_MaxSuffixComponents = 84, |
| 94 | ndn_BinaryXml_DTag_ChildSelector = 85, |
| 95 | ndn_BinaryXml_DTag_RepositoryInfo = 86, |
| 96 | ndn_BinaryXml_DTag_Version = 87, |
| 97 | ndn_BinaryXml_DTag_RepositoryVersion = 88, |
| 98 | ndn_BinaryXml_DTag_GlobalPrefix = 89, |
| 99 | ndn_BinaryXml_DTag_LocalName = 90, |
| 100 | ndn_BinaryXml_DTag_Policy = 91, |
| 101 | ndn_BinaryXml_DTag_Namespace = 92, |
| 102 | ndn_BinaryXml_DTag_GlobalPrefixName = 93, |
| 103 | ndn_BinaryXml_DTag_PolicyVersion = 94, |
| 104 | ndn_BinaryXml_DTag_KeyValueSet = 95, |
| 105 | ndn_BinaryXml_DTag_KeyValuePair = 96, |
| 106 | ndn_BinaryXml_DTag_IntegerValue = 97, |
| 107 | ndn_BinaryXml_DTag_DecimalValue = 98, |
| 108 | ndn_BinaryXml_DTag_StringValue = 99, |
| 109 | ndn_BinaryXml_DTag_BinaryValue = 100, |
| 110 | ndn_BinaryXml_DTag_NameValue = 101, |
| 111 | ndn_BinaryXml_DTag_Entry = 102, |
| 112 | ndn_BinaryXml_DTag_ACL = 103, |
| 113 | ndn_BinaryXml_DTag_ParameterizedName = 104, |
| 114 | ndn_BinaryXml_DTag_Prefix = 105, |
| 115 | ndn_BinaryXml_DTag_Suffix = 106, |
| 116 | ndn_BinaryXml_DTag_Root = 107, |
| 117 | ndn_BinaryXml_DTag_ProfileName = 108, |
| 118 | ndn_BinaryXml_DTag_Parameters = 109, |
| 119 | ndn_BinaryXml_DTag_InfoString = 110, |
| 120 | ndn_BinaryXml_DTag_StatusResponse = 112, |
| 121 | ndn_BinaryXml_DTag_StatusCode = 113, |
| 122 | ndn_BinaryXml_DTag_StatusText = 114, |
| 123 | ndn_BinaryXml_DTag_SyncNode = 115, |
| 124 | ndn_BinaryXml_DTag_SyncNodeKind = 116, |
| 125 | ndn_BinaryXml_DTag_SyncNodeElement = 117, |
| 126 | ndn_BinaryXml_DTag_SyncVersion = 118, |
| 127 | ndn_BinaryXml_DTag_SyncNodeElements = 119, |
| 128 | ndn_BinaryXml_DTag_SyncContentHash = 120, |
| 129 | ndn_BinaryXml_DTag_SyncLeafCount = 121, |
| 130 | ndn_BinaryXml_DTag_SyncTreeDepth = 122, |
| 131 | ndn_BinaryXml_DTag_SyncByteCount = 123, |
| 132 | ndn_BinaryXml_DTag_SyncConfigSlice = 124, |
| 133 | ndn_BinaryXml_DTag_SyncConfigSliceList = 125, |
| 134 | ndn_BinaryXml_DTag_SyncConfigSliceOp = 126, |
| 135 | ndn_BinaryXml_DTag_SyncNodeDeltas = 127, |
| 136 | ndn_BinaryXml_DTag_SequenceNumber = 256, |
| 137 | ndn_BinaryXml_DTag_CCNProtocolDataUnit = 17702112 |
Jeff Thompson | c5f9d3f | 2013-06-26 21:31:12 -0700 | [diff] [blame] | 138 | }; |
Jeff Thompson | 76317aa | 2013-06-25 19:11:48 -0700 | [diff] [blame] | 139 | |
Jeff Thompson | a0d18c9 | 2013-08-06 13:55:32 -0700 | [diff] [blame] | 140 | #ifdef __cplusplus |
Jeff Thompson | 76317aa | 2013-06-25 19:11:48 -0700 | [diff] [blame] | 141 | } |
| 142 | #endif |
| 143 | |
| 144 | #endif |