source: trunk/libtransmission/trevent.h @ 2836

Last change on this file since 2836 was 2836, checked in by charles, 14 years ago

push event_del() through the libevent pipe too.

File size: 1.2 KB
Line 
1/*
2 * This file Copyright (C) 2007 Charles Kerr <charles@rebelbase.com>
3 *
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.
9 */
10
11#ifndef TR_EVENT_H
12
13/**
14**/
15
16extern void tr_eventInit( struct tr_handle_s * tr_handle );
17
18extern void tr_eventClose( struct tr_handle_s * tr_handle );
19
20/**
21**/
22
23struct event;
24enum evhttp_cmd_type;
25struct evhttp_request;
26struct evhttp_connection;
27
28void  tr_event_add( struct tr_handle_s  * tr_handle,
29                    struct event        * event,
30                    struct timeval      * interval );
31
32void  tr_event_del( struct tr_handle_s  * tr_handle,
33                    struct event        * event );
34
35void tr_evhttp_make_request (struct tr_handle_s        * tr_handle,
36                             struct evhttp_connection  * evcon,
37                             struct evhttp_request     * req,
38                             enum evhttp_cmd_type        type,
39                             const char                * uri);
40
41#endif
Note: See TracBrowser for help on using the repository browser.