Jeff Thompson | 5d89cb9 | 2013-06-27 15:57:15 -0700 | [diff] [blame] | 1 | /* |
| 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 |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | struct ndn_Component { |
| 15 | unsigned char *value; |
| 16 | unsigned int valueLen; |
| 17 | }; |
| 18 | |
| 19 | enum { |
| 20 | ndn_Name_MAX_COMPONENTS = 100 |
| 21 | }; |
| 22 | |
| 23 | struct ndn_Name { |
| 24 | struct ndn_Component components[ndn_Name_MAX_COMPONENTS]; |
| 25 | unsigned int nComponents; |
| 26 | }; |
| 27 | |
| 28 | void ndn_Name_init(struct ndn_Name *self); |
| 29 | |
| 30 | #ifdef __cplusplus |
| 31 | } |
| 32 | #endif |
| 33 | |
| 34 | #endif /* NAME_H */ |
| 35 | |