transmission: update from 2.13 to 2.22
[tomato.git] / release / src / router / transmission / libtransmission / trevent.h
blobd0bbd5b8495367efa3865dac601422cdf6f0e645
1 /*
2 * This file Copyright (C) Mnemosyne LLC
4 * This file is licensed by the GPL version 2. Works owned by the
5 * Transmission project are granted a special exemption to clause 2(b)
6 * so that the bulk of its code can remain under the MIT license.
7 * This exemption does not extend to derived works not owned by
8 * the Transmission project.
10 * $Id: trevent.h 11709 2011-01-19 13:48:47Z jordan $
13 #ifndef __TRANSMISSION__
14 #error only libtransmission should #include this header.
15 #endif
17 #ifndef TR_EVENT_H
18 #define TR_EVENT_H
20 #include <stddef.h> /* size_t */
21 #include <inttypes.h> /* uint64_t */
23 /**
24 **/
26 void tr_eventInit( tr_session * );
28 void tr_eventClose( tr_session * );
30 tr_bool tr_amInEventThread( const tr_session * );
32 void tr_runInEventThread( tr_session *, void func( void* ), void * user_data );
34 #endif