All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
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 
37 typedef enum {
38  ndn_NameComponentType_IMPLICIT_SHA256_DIGEST = 1,
39  ndn_NameComponentType_PARAMETERS_SHA256_DIGEST = 2,
40  ndn_NameComponentType_GENERIC = 8,
41  ndn_NameComponentType_OTHER_CODE = 0x7fff
42 } ndn_NameComponentType;
43 
48  ndn_NameComponentType type;
49  int otherTypeCode;
50  struct ndn_Blob value;
51 };
52 
56 struct ndn_Name {
58  size_t maxComponents;
59  size_t nComponents;
60 };
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif
struct ndn_NameComponent * components
pointer to the array of components.
Definition: name-types.h:57
size_t nComponents
the number of components in the name
Definition: name-types.h:59
An ndn_NameComponent holds a pointer to the component value.
Definition: name-types.h:47
struct ndn_Blob value
A Blob with a pointer to the pre-allocated buffer for the component value.
Definition: name-types.h:50
An ndn_Name holds an array of ndn_NameComponent.
Definition: name-types.h:56
Copyright (C) 2015-2018 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:58