Jeff Thompson | 25b4e61 | 2013-10-10 16:03:24 -0700 | [diff] [blame] | 1 | /** |
| 2 | * Copyright (C) 2013 Regents of the University of California. |
| 3 | * @author: Jeff Thompson <jefft0@remap.ucla.edu> |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #ifndef NDN_INTEREST_TYPES_H |
Jeff Thompson | e589c3f | 2013-10-12 17:30:50 -0700 | [diff] [blame] | 8 | #define NDN_INTEREST_TYPES_H |
Jeff Thompson | 25b4e61 | 2013-10-10 16:03:24 -0700 | [diff] [blame] | 9 | |
Jeff Thompson | e589c3f | 2013-10-12 17:30:50 -0700 | [diff] [blame] | 10 | #ifdef __cplusplus |
Jeff Thompson | 25b4e61 | 2013-10-10 16:03:24 -0700 | [diff] [blame] | 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | typedef enum { |
| 15 | ndn_Exclude_COMPONENT = 0, |
| 16 | ndn_Exclude_ANY = 1 |
| 17 | } ndn_ExcludeType; |
| 18 | |
Jeff Thompson | e6f84db | 2013-10-21 17:29:44 -0700 | [diff] [blame] | 19 | enum { |
| 20 | ndn_Interest_CHILD_SELECTOR_LEFT = 0, |
| 21 | ndn_Interest_CHILD_SELECTOR_RIGHT = 1, |
Jeff Thompson | 25b4e61 | 2013-10-10 16:03:24 -0700 | [diff] [blame] | 22 | |
Jeff Thompson | e6f84db | 2013-10-21 17:29:44 -0700 | [diff] [blame] | 23 | ndn_Interest_ANSWER_NO_CONTENT_STORE = 0, |
| 24 | ndn_Interest_ANSWER_CONTENT_STORE = 1, |
| 25 | ndn_Interest_ANSWER_GENERATED = 2, |
| 26 | ndn_Interest_ANSWER_STALE = 4, // Stale answer OK |
| 27 | ndn_Interest_MARK_STALE = 16, // Must have scope 0. Michael calls this a "hack" |
| 28 | |
| 29 | ndn_Interest_DEFAULT_ANSWER_ORIGIN_KIND = ndn_Interest_ANSWER_CONTENT_STORE | ndn_Interest_ANSWER_GENERATED |
| 30 | }; |
Jeff Thompson | 25b4e61 | 2013-10-10 16:03:24 -0700 | [diff] [blame] | 31 | |
Jeff Thompson | e589c3f | 2013-10-12 17:30:50 -0700 | [diff] [blame] | 32 | #ifdef __cplusplus |
Jeff Thompson | 25b4e61 | 2013-10-10 16:03:24 -0700 | [diff] [blame] | 33 | } |
| 34 | #endif |
| 35 | |
| 36 | #endif |