blob: 1f10b779c53f28875e744ebccc560236b5ed8d32 [file] [log] [blame]
Jeff Thompson5d89cb92013-06-27 15:57:15 -07001/*
2 * Author: Jeff Thompson
3 *
4 * BSD license, See the LICENSE file for more information.
5 */
6
7#ifndef NDN_NAME_H
8#define NDN_NAME_H
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14struct ndn_Component {
15 unsigned char *value;
16 unsigned int valueLen;
17};
18
19enum {
20 ndn_Name_MAX_COMPONENTS = 100
21};
22
23struct ndn_Name {
24 struct ndn_Component components[ndn_Name_MAX_COMPONENTS];
25 unsigned int nComponents;
26};
27
28void ndn_Name_init(struct ndn_Name *self);
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif /* NAME_H */
35