static void timer_callback(pj_timer_heap_t *ht, pj_timer_entry *e) { struct tp_zrtp *zrtp = (struct tp_zrtp*)e->user_data; zrtp_processTimeout(zrtp->zrtpCtx); PJ_UNUSED_ARG(ht); }
static void check_timer(ZrtpContext *zrtpContext, OrtpZrtpContext *c) { if (c->timerWillTriggerAt != 0) { struct timeval t; gettimeofday(&t,NULL); uint64_t now=convert_timeval_to_millis(&t); if (now > c->timerWillTriggerAt) { c->timerWillTriggerAt=0; zrtp_processTimeout(zrtpContext); } } }