name-types.h
1 
21 #ifndef NDN_NAME_TYPES_H
22 #define NDN_NAME_TYPES_H
23 
24 #include "util/blob-types.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
33 typedef enum {
34  ndn_NameComponentType_IMPLICIT_SHA256_DIGEST = 1,
35  ndn_NameComponentType_GENERIC = 8
36 } ndn_NameComponentType;
37 
42  ndn_NameComponentType type;
43  struct ndn_Blob value;
44 };
45 
49 struct ndn_Name {
51  size_t maxComponents;
52  size_t nComponents;
53 };
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif
struct ndn_NameComponent * components
pointer to the array of components.
Definition: name-types.h:50
size_t nComponents
the number of components in the name
Definition: name-types.h:52
An ndn_NameComponent holds a pointer to the component value.
Definition: name-types.h:41
struct ndn_Blob value
A Blob with a pointer to the pre-allocated buffer for the component value.
Definition: name-types.h:43
An ndn_Name holds an array of ndn_NameComponent.
Definition: name-types.h:49
Copyright (C) 2015-2016 Regents of the University of California.
Definition: blob-types.h:33
size_t maxComponents
the number of elements in the allocated components array
Definition: name-types.h:51