Ignore:
Timestamp:
Dec 10, 2009, 5:52:46 AM (12 years ago)
Author:
charles
Message:

(trunk libT) finally get rid of the last remnants of tr_timer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/trevent.h

    r9671 r9704  
    2828void      tr_eventClose( tr_session * );
    2929
     30tr_bool   tr_amInEventThread( const tr_session * );
     31
     32void      tr_runInEventThread( tr_session *, void func( void* ), void * user_data );
     33
    3034struct event_base * tr_eventGetBase( tr_session * );
    3135
    32 
    33 typedef struct tr_timer  tr_timer;
    34 
    35 /**
    36  * Calls timer_func(user_data) after the specified interval.
    37  * The timer is freed if timer_func returns zero.
    38  * Otherwise, it's called again after the same interval.
    39  */
    40 tr_timer* tr_timerNew( tr_session * handle,
    41                        int func( void * user_data ),
    42                        void * user_data,
    43                        uint64_t timeout_milliseconds );
    44 
    45 /**
    46  * Frees a timer and sets the timer pointer to NULL.
    47  */
    48 void      tr_timerFree( tr_timer ** timer );
    49 
    50 
    51 tr_bool   tr_amInEventThread( tr_session * );
    52 
    53 void      tr_runInEventThread( tr_session * session,
    54                                void         func( void* ),
    55                                void       * user_data );
    56 
    5736#endif
Note: See TracChangeset for help on using the changeset viewer.