source: trunk/libtransmission/trevent.h @ 2975

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

(trunk) fix some of the crash-on-shutdown issues.

  • Property svn:keywords set to Date Rev Author Id
File size: 1.7 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 2975 2007-09-05 23:01:56Z charles $
11 */
12
13#ifndef TR_EVENT_H
14
15#include <stddef.h> /* for size_t */
16
17/**
18**/
19
20void tr_eventInit( struct tr_handle_s * tr_handle );
21
22void tr_eventClose( struct tr_handle_s * tr_handle );
23
24/**
25**/
26
27struct event;
28enum evhttp_cmd_type;
29struct evhttp_request;
30struct evhttp_connection;
31struct bufferevent;
32
33void  tr_event_add( struct tr_handle_s  * tr_handle,
34                    struct event      * event,
35                    struct timeval    * interval );
36
37void  tr_event_del( struct tr_handle_s  * tr_handle,
38                    struct event      * event );
39
40void tr_evhttp_make_request (struct tr_handle_s          * tr_handle,
41                             struct evhttp_connection  * evcon,
42                             struct evhttp_request     * req,
43                             enum evhttp_cmd_type        type,
44                             char                      * uri);
45
46void tr_bufferevent_write( struct tr_handle_s    * tr_handle,
47                           struct bufferevent  * bufferEvent,
48                           const void          * buf,
49                           size_t                buflen );
50
51void tr_setBufferEventMode( struct tr_handle_s   * tr_handle,
52                            struct bufferevent * bufferEvent,
53                            short                mode_enable,
54                            short                mode_disable );
55
56#endif
Note: See TracBrowser for help on using the repository browser.