1 /*
2  * This file Copyright (C) 2007-2014 Mnemosyne LLC
3  *
4  * It may be used under the GNU GPL versions 2 or 3
5  * or any future license endorsed by Mnemosyne LLC.
6  *
7  */
8 
9 #pragma once
10 
11 #ifndef __TRANSMISSION__
12 #error only libtransmission should #include this header.
13 #endif
14 
15 /**
16 **/
17 
18 void tr_eventInit(tr_session*);
19 
20 void tr_eventClose(tr_session*);
21 
22 bool tr_amInEventThread(tr_session const*);
23 
24 void tr_runInEventThread(tr_session*, void (* func)(void*), void* user_data);
25