ccnr_util.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef CCNR_UTIL_DEFINED
00024 #define CCNR_UTIL_DEFINED
00025
00026 #include "ccnr_private.h"
00027
00028 void r_util_gettime(const struct ccn_gettime *self,struct ccn_timeval *result);
00029 int r_util_timecmp(long secA, unsigned usecA, long secB, unsigned usecB);
00030 void r_util_reseed(struct ccnr_handle *h);
00031 void r_util_indexbuf_release(struct ccnr_handle *h,struct ccn_indexbuf *c);
00032 struct ccn_indexbuf *r_util_indexbuf_obtain(struct ccnr_handle *h);
00033 void r_util_charbuf_release(struct ccnr_handle *h,struct ccn_charbuf *c);
00034 struct ccn_charbuf *r_util_charbuf_obtain(struct ccnr_handle *h);
00035 intmax_t r_util_segment_from_component(const unsigned char *ccnb, size_t start, size_t stop);
00036 int r_util_name_comp_compare(const unsigned char *data, const struct ccn_indexbuf *indexbuf, unsigned int i, const void *val, size_t length);
00037 int r_util_is_final_pco(const unsigned char *ccnb, struct ccn_parsed_ContentObject *pco, struct ccn_indexbuf *comps);
00038 #endif