~ubuntu-branches/ubuntu/lucid/transmission/lucid-proposed

« back to all changes in this revision

Viewing changes to libtransmission/trevent.h

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda, Krzysztof Klimonda, Chris Coulson
  • Date: 2009-12-11 11:46:59 UTC
  • mfrom: (1.1.30 upstream)
  • Revision ID: james.westby@ubuntu.com-20091211114659-6ebcmonweaixdpl3
Tags: 1.80~b5-0ubuntu1
[ Krzysztof Klimonda ]
* New upstream release (LP: #496503)
* Refreshed 99_autoreconf.patch
* Removed 21_fix_inhibition.patch

[ Chris Coulson ]
* Drop debian/patches/CVE-2010-0012.patch - merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * This file Copyright (C) 2007-2009 Mnemosyne LLC
 
2
 * This file Copyright (C) 2007-2010 Mnemosyne LLC
3
3
 *
4
4
 * This file is licensed by the GPL version 2.  Works owned by the
5
5
 * Transmission project are granted a special exemption to clause 2(b)
7
7
 * This exemption does not extend to derived works not owned by
8
8
 * the Transmission project.
9
9
 *
10
 
 * $Id: trevent.h 9671 2009-12-05 02:19:24Z charles $
 
10
 * $Id: trevent.h 9868 2010-01-04 21:00:47Z charles $
11
11
 */
12
12
 
13
13
#ifndef __TRANSMISSION__
27
27
 
28
28
void      tr_eventClose( tr_session * );
29
29
 
 
30
tr_bool   tr_amInEventThread( const tr_session * );
 
31
 
 
32
void      tr_runInEventThread( tr_session *, void func( void* ), void * user_data );
 
33
 
30
34
struct event_base * tr_eventGetBase( tr_session * );
31
35
 
32
 
 
33
 
typedef struct tr_timer  tr_timer;
34
 
 
35
 
/**
36
 
 * Calls timer_func(user_data) after the specified interval.
37
 
 * The timer is freed if timer_func returns zero.
38
 
 * Otherwise, it's called again after the same interval.
39
 
 */
40
 
tr_timer* tr_timerNew( tr_session * handle,
41
 
                       int func( void * user_data ),
42
 
                       void * user_data,
43
 
                       uint64_t timeout_milliseconds );
44
 
 
45
 
/**
46
 
 * Frees a timer and sets the timer pointer to NULL.
47
 
 */
48
 
void      tr_timerFree( tr_timer ** timer );
49
 
 
50
 
 
51
 
tr_bool   tr_amInEventThread( tr_session * );
52
 
 
53
 
void      tr_runInEventThread( tr_session * session,
54
 
                               void         func( void* ),
55
 
                               void       * user_data );
56
 
 
57
36
#endif