Go to the documentation of this file. 23 #ifndef _CACHE_TIME_H_ 24 #define _CACHE_TIME_H_ 35 #define CACHE_TIME_AS_ARGS(ct) (ct)->sec, (ct)->usec 37 #define CACHE_TIME_EQ(T1, T2) \ 38 (((T1)->sec != 0) && ((T1)->sec == (T2)->sec) && ((T1)->usec == (T2)->usec)) 40 #define CACHE_TIME_RESET(T) \ 48 #define CACHE_TIME_MAKE(CT, TV) \ 51 (CT)->sec = (TV)->tv_sec; \ 52 (CT)->usec = (TV)->tv_usec; \ 56 #define OR_CACHE_TIME_SIZE (OR_INT_SIZE * 2) 58 #define OR_PACK_CACHE_TIME(PTR, T) \ 61 if ((CACHE_TIME *) (T) != NULL) \ 63 PTR = or_pack_int (PTR, (T)->sec); \ 64 PTR = or_pack_int (PTR, (T)->usec); \ 68 PTR = or_pack_int (PTR, 0); \ 69 PTR = or_pack_int (PTR, 0); \ 74 #define OR_UNPACK_CACHE_TIME(PTR, T) \ 77 if ((CACHE_TIME *) (T) != NULL) \ 79 PTR = or_unpack_int (PTR, &((T)->sec)); \ 80 PTR = or_unpack_int (PTR, &((T)->usec)); \