static int32_t zrtp_cancelTimer(ZrtpContext* ctx) { struct tp_zrtp *zrtp = (struct tp_zrtp*)ctx->userData; timer_cancel_entry(&zrtp->timeoutEntry); return 1; }
static int32_t zrtp_cancelTimer(ZrtpContext* ctx) { struct tp_zrtp *zrtp = (struct tp_zrtp*)ctx->userData; #ifndef DYNAMIC_TIMER timer_cancel_entry(&zrtp->timeoutEntry); #else if(zrtp->timer_heap != NULL){ pj_timer_heap_cancel(zrtp->timer_heap, &zrtp->timeoutEntry); } #endif return 1; }