akmhoque | 59980a5 | 2012-08-09 12:36:09 -0500 | [diff] [blame] | 1 | #ifndef _NLSR_NDN_H_ |
| 2 | #define _NLSR_NDN_H_ |
| 3 | |
akmhoque | d79438d | 2012-08-27 13:31:42 -0500 | [diff] [blame] | 4 | int appendLifetime(struct ccn_charbuf *cb, int lifetime); |
akmhoque | 03004e6 | 2012-09-06 01:12:28 -0500 | [diff] [blame] | 5 | void get_nbr(struct name_prefix *nbr,struct ccn_closure *selfp, struct ccn_upcall_info *info); |
| 6 | void get_lsa_identifier(struct name_prefix *lsaId,struct ccn_closure *selfp, struct ccn_upcall_info *info,int offset); |
akmhoque | 888c773 | 2013-02-20 11:28:37 -0600 | [diff] [blame] | 7 | //void get_lsdb_version(char *lsdb_version,struct ccn_closure *selfp, struct ccn_upcall_info *info ); |
| 8 | //int get_ls_type(struct ccn_closure *selfp, struct ccn_upcall_info *info); |
akmhoque | 03004e6 | 2012-09-06 01:12:28 -0500 | [diff] [blame] | 9 | |
akmhoque | b77b95f | 2013-02-08 12:28:47 -0600 | [diff] [blame] | 10 | enum ccn_upcall_res incoming_interest(struct ccn_closure *selfp, enum ccn_upcall_kind kind, struct ccn_upcall_info *info); |
akmhoque | 1c9b92f | 2012-08-13 10:57:50 -0500 | [diff] [blame] | 11 | void process_incoming_interest(struct ccn_closure *selfp, struct ccn_upcall_info *info); |
akmhoque | d79438d | 2012-08-27 13:31:42 -0500 | [diff] [blame] | 12 | void process_incoming_interest_info(struct ccn_closure *selfp, struct ccn_upcall_info *info); |
akmhoque | 53f6422 | 2012-09-05 13:57:51 -0500 | [diff] [blame] | 13 | |
akmhoque | 03004e6 | 2012-09-06 01:12:28 -0500 | [diff] [blame] | 14 | enum ccn_upcall_res incoming_content(struct ccn_closure* selfp, enum ccn_upcall_kind kind, struct ccn_upcall_info* info); |
akmhoque | 53f6422 | 2012-09-05 13:57:51 -0500 | [diff] [blame] | 15 | void process_incoming_content(struct ccn_closure *selfp, struct ccn_upcall_info* info); |
| 16 | void process_incoming_content_info(struct ccn_closure *selfp, struct ccn_upcall_info* info); |
akmhoque | 59980a5 | 2012-08-09 12:36:09 -0500 | [diff] [blame] | 17 | |
akmhoque | cb01775 | 2012-08-16 11:03:45 -0500 | [diff] [blame] | 18 | void process_incoming_timed_out_interest(struct ccn_closure* selfp, struct ccn_upcall_info* info); |
akmhoque | d79438d | 2012-08-27 13:31:42 -0500 | [diff] [blame] | 19 | void process_incoming_timed_out_interest_info(struct ccn_closure* selfp, struct ccn_upcall_info* info); |
akmhoque | cb01775 | 2012-08-16 11:03:45 -0500 | [diff] [blame] | 20 | |
akmhoque | d79438d | 2012-08-27 13:31:42 -0500 | [diff] [blame] | 21 | int send_info_interest(struct ccn_schedule *sched, void *clienth, struct ccn_scheduled_event *ev, int flags); |
akmhoque | 53f6422 | 2012-09-05 13:57:51 -0500 | [diff] [blame] | 22 | void send_info_interest_to_neighbor(struct name_prefix *nbr); |
| 23 | |
akmhoque | c06dcf1 | 2013-02-20 08:13:37 -0600 | [diff] [blame] | 24 | struct ccn_charbuf * get_key_name(const unsigned char *ccnb, struct ccn_parsed_ContentObject *pco); |
| 25 | int contain_key_name(const unsigned char *ccnb, struct ccn_parsed_ContentObject *pco); |
| 26 | |
akmhoque | 59980a5 | 2012-08-09 12:36:09 -0500 | [diff] [blame] | 27 | |
| 28 | #endif |