tlv-name.h
1 
21 #ifndef NDN_TLV_NAME_H
22 #define NDN_TLV_NAME_H
23 
24 #include "../../name.h"
25 #include "tlv-encoder.h"
26 #include "tlv-decoder.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
40 ndn_Error
41 ndn_encodeTlvNameComponent
42  (const struct ndn_NameComponent *component, struct ndn_TlvEncoder *encoder);
43 
52 ndn_Error
53 ndn_decodeTlvNameComponent
54  (struct ndn_NameComponent *component, struct ndn_TlvDecoder *decoder);
55 
73 ndn_Error
74 ndn_encodeTlvName
75  (const struct ndn_Name *name, size_t *signedPortionBeginOffset,
76  size_t *signedPortionEndOffset, struct ndn_TlvEncoder *encoder);
77 
93 ndn_Error
94 ndn_decodeTlvName
95  (struct ndn_Name *name, size_t *signedPortionBeginOffset,
96  size_t *signedPortionEndOffset, struct ndn_TlvDecoder *decoder);
97 
98 #ifdef __cplusplus
99 }
100 #endif
101 
102 #endif
Copyright (C) 2014-2016 Regents of the University of California.
Definition: tlv-encoder.h:39
An ndn_NameComponent holds a pointer to the component value.
Definition: name-types.h:41
An ndn_Name holds an array of ndn_NameComponent.
Definition: name-types.h:49
Copyright (C) 2014-2016 Regents of the University of California.
Definition: tlv-decoder.h:34