source: trunk/libtransmission/trevent.h @ 2874

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

cleaner shutdown

  • Property svn:keywords set to Date Rev Author Id
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 * $Id: trevent.h 2874 2007-08-20 02:18:38Z charles $
11 */
12
13#ifndef TR_EVENT_H
14
15/**
16**/
17
18extern void tr_eventInit( struct tr_handle_s * tr_handle );
19
20extern void tr_eventClose( struct tr_handle_s * tr_handle );
21
22/**
23**/
24
25struct event;
26enum evhttp_cmd_type;
27struct evhttp_request;
28struct evhttp_connection;
29
30void  tr_event_add( struct tr_handle_s  * tr_handle,
31                    struct event        * event,
32                    struct timeval      * interval );
33
34void  tr_event_del( struct tr_handle_s  * tr_handle,
35                    struct event        * event );
36
37void tr_evhttp_make_request (struct tr_handle_s        * tr_handle,
38                             struct evhttp_connection  * evcon,
39                             struct evhttp_request     * req,
40                             enum evhttp_cmd_type        type,
41                             char                      * uri);
42
43#endif
Note: See TracBrowser for help on using the repository browser.