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.
20 #include <stddef.h> /* size_t */
21 #include <inttypes.h> /* uint64_t */
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
);