Exemplo n.º 1
0
static int32_t zrtp_cancelTimer(ZrtpContext* ctx)
{
    struct tp_zrtp *zrtp = (struct tp_zrtp*)ctx->userData;

    timer_cancel_entry(&zrtp->timeoutEntry);

    return 1;
}
Exemplo n.º 2
0
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;
}