source: trunk/libtransmission/trevent.h @ 2829

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

do all the libevent enqueuing from a single thread.

File size: 1.1 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
28extern void  tr_event_add( struct tr_handle_s  * tr_handle,
29                           struct event        * event,
30                           struct timeval      * interval );
31
32extern void tr_evhttp_make_request (struct tr_handle_s        * tr_handle,
33                                    struct evhttp_connection  * evcon,
34                                    struct evhttp_request     * req,
35                                    enum evhttp_cmd_type        type,
36                                    const char                * uri);
37
38#endif
Note: See TracBrowser for help on using the repository browser.