blob: a464e17fa997728849c9553cefd216e2e484e84d [file] [log] [blame]
Jeff Thompson25b4e612013-10-10 16:03:24 -07001/**
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 Thompsone589c3f2013-10-12 17:30:50 -07008#define NDN_INTEREST_TYPES_H
Jeff Thompson25b4e612013-10-10 16:03:24 -07009
Jeff Thompsone589c3f2013-10-12 17:30:50 -070010#ifdef __cplusplus
Jeff Thompson25b4e612013-10-10 16:03:24 -070011extern "C" {
12#endif
13
14typedef enum {
15 ndn_Exclude_COMPONENT = 0,
16 ndn_Exclude_ANY = 1
17} ndn_ExcludeType;
18
Jeff Thompsone6f84db2013-10-21 17:29:44 -070019enum {
20 ndn_Interest_CHILD_SELECTOR_LEFT = 0,
21 ndn_Interest_CHILD_SELECTOR_RIGHT = 1,
Jeff Thompson25b4e612013-10-10 16:03:24 -070022
Jeff Thompsone6f84db2013-10-21 17:29:44 -070023 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 Thompson25b4e612013-10-10 16:03:24 -070031
Jeff Thompsone589c3f2013-10-12 17:30:50 -070032#ifdef __cplusplus
Jeff Thompson25b4e612013-10-10 16:03:24 -070033}
34#endif
35
36#endif