blob: 4c2a79cafb3f86aecabb3a95b4dca7abeacca70c [file] [log] [blame]
akmhoque59980a52012-08-09 12:36:09 -05001#ifndef _NLSR_NDN_H_
2#define _NLSR_NDN_H_
3
akmhoqued79438d2012-08-27 13:31:42 -05004int appendLifetime(struct ccn_charbuf *cb, int lifetime);
akmhoquebf1aa832012-08-13 13:26:59 -05005
akmhoque1c9b92f2012-08-13 10:57:50 -05006int send_lsdb_interest(struct ccn_schedule *sched, void *clienth, struct ccn_scheduled_event *ev, int flags);
7
akmhoque59980a52012-08-09 12:36:09 -05008enum ccn_upcall_res incoming_interest(struct ccn_closure *selfp, enum ccn_upcall_kind kind, struct ccn_upcall_info *info);
akmhoque1c9b92f2012-08-13 10:57:50 -05009void process_incoming_interest(struct ccn_closure *selfp, struct ccn_upcall_info *info);
akmhoquebf1aa832012-08-13 13:26:59 -050010void process_incoming_interest_lsdb(struct ccn_closure *selfp, struct ccn_upcall_info *info);
akmhoqued79438d2012-08-27 13:31:42 -050011void process_incoming_interest_info(struct ccn_closure *selfp, struct ccn_upcall_info *info);
akmhoque59980a52012-08-09 12:36:09 -050012
akmhoquecb017752012-08-16 11:03:45 -050013void process_incoming_timed_out_interest(struct ccn_closure* selfp, struct ccn_upcall_info* info);
akmhoquedde7e322012-08-16 13:57:06 -050014void process_incoming_timed_out_interest_lsdb(struct ccn_closure* selfp, struct ccn_upcall_info* info);
akmhoqued79438d2012-08-27 13:31:42 -050015void process_incoming_timed_out_interest_info(struct ccn_closure* selfp, struct ccn_upcall_info* info);
akmhoquecb017752012-08-16 11:03:45 -050016
akmhoque59980a52012-08-09 12:36:09 -050017
18enum ccn_upcall_res incoming_content(struct ccn_closure* selfp, enum ccn_upcall_kind kind, struct ccn_upcall_info* info);
akmhoquecb017752012-08-16 11:03:45 -050019void process_incoming_content(struct ccn_closure* selfp, struct ccn_upcall_info* info);
akmhoque638c20a2012-08-16 11:57:48 -050020void process_incoming_content_lsdb(struct ccn_closure* selfp, struct ccn_upcall_info* info);
akmhoqued79438d2012-08-27 13:31:42 -050021void process_incoming_content_info(struct ccn_closure* selfp, struct ccn_upcall_info* info);
22
23
24int send_info_interest(struct ccn_schedule *sched, void *clienth, struct ccn_scheduled_event *ev, int flags);
25void send_info_interest_to_neighbor(struct ccn_charbuf *nbr);
akmhoque59980a52012-08-09 12:36:09 -050026
27#endif
28