~sense/ubuntu/lucid/transmission/fix-497882

« back to all changes in this revision

Viewing changes to libtransmission/list.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2008-11-28 15:33:48 UTC
  • mfrom: (1.1.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20081128153348-it70trfnxiroblmc
Tags: 1.40-0ubuntu1
* New upstream release (LP: #302672)
  - Tracker communication uses fewer resources
  - More accurate bandwidth limits
  - Reduce disk fragmentation by preallocating files (LP: #287726)
  - Stability, security and performance improvements to the RPC /
    Web UI server (closes LP: #290423)
  - Support compression when serving Web UI and RPC responses
  - Simplify the RPC whitelist
  - Fix bug that prevented handshakes with encrypted BitComet peers
  - Fix 1.3x bug that could re-download some data unnecessarily
    (LP: #295040)
  - Option to automatically update the blocklist weekly
  - Added off-hour bandwidth scheduling
  - Simplify file/priority selection in the details dialog
  - Fix a couple of crashes
  - New / updated translations
  - Don't inhibit hibernation by default (LP: #292929)
  - Use "close" animation when sending to notification area (LP: #130811)
  - Fix resize problems (LP: #269872)
  - Support "--version" option when launching from command line
    (LP: #292011)
  - Correctly parse announce URLs that have leading or trailing
    spaces (LP: #262411)
  - Display an error when "Open Torrent" fails (LP: #281463)
* Dropped 10_fix_crasher_from_upstream.dpatch: Fix is in this
  upstream release.
* debian/control: Don't just build-depend on libcurl-dev, which is
  a virtual package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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)
6
 
 * so that the bulk of its code can remain under the MIT license. 
 
6
 * so that the bulk of its code can remain under the MIT license.
7
7
 * This exemption does not extend to derived works not owned by
8
8
 * the Transmission project.
9
9
 *
10
 
 * $Id: list.h 4404 2008-01-01 17:20:20Z charles $
 
10
 * $Id: list.h 6795 2008-09-23 19:11:04Z charles $
11
11
 */
12
12
 
13
13
#ifndef TR_LIST_H
15
15
 
16
16
typedef struct tr_list
17
17
{
18
 
    void            * data;
 
18
    void *  data;
19
19
    struct tr_list  * next;
20
20
    struct tr_list  * prev;
21
21
}
22
22
tr_list;
23
23
 
24
 
typedef int (*TrListCompareFunc)(const void * a, const void * b);
25
 
typedef void (*TrListForeachFunc)(void *);
26
 
 
27
 
int         tr_list_size           ( const tr_list    * list );
28
 
 
29
 
void        tr_list_free           ( tr_list         ** list,
30
 
                                     TrListForeachFunc  data_free_func );
31
 
 
32
 
void        tr_list_append         ( tr_list         ** list,
33
 
                                     void             * data );
34
 
 
35
 
void        tr_list_prepend        ( tr_list         ** list,
36
 
                                     void             * data );
37
 
 
38
 
void*       tr_list_pop_front      ( tr_list         ** list );
39
 
 
40
 
void*       tr_list_remove_data    ( tr_list         ** list,
41
 
                                     const void       * data );
42
 
 
43
 
void*       tr_list_remove         ( tr_list         ** list,
44
 
                                     const void       * b,
45
 
                                     TrListCompareFunc  compare_func );
46
 
 
47
 
void        tr_list_insert_sorted  ( tr_list         ** list,
48
 
                                     void             * data,
49
 
                                     TrListCompareFunc  compare_func );
50
 
 
51
 
tr_list*  tr_list_find           ( tr_list          * list,
52
 
                                   const void       * b,
53
 
                                   TrListCompareFunc  compare_func );
54
 
 
55
 
tr_list*  tr_list_find_data      ( tr_list          * list,
56
 
                                   const void       * data );
57
 
 
58
 
void        tr_list_foreach      ( tr_list          * list,
59
 
                                   TrListForeachFunc  foreach_func );
 
24
typedef int ( *TrListCompareFunc )( const void * a, const void * b );
 
25
typedef void ( *TrListForeachFunc )( void * );
 
26
 
 
27
int      tr_list_size( const tr_list * list );
 
28
 
 
29
void     tr_list_free( tr_list **        list,
 
30
                       TrListForeachFunc data_free_func );
 
31
 
 
32
void     tr_list_append( tr_list ** list,
 
33
                         void *     data );
 
34
 
 
35
void     tr_list_prepend( tr_list ** list,
 
36
                          void *     data );
 
37
 
 
38
void*    tr_list_pop_front( tr_list ** list );
 
39
 
 
40
void*    tr_list_remove_data( tr_list **   list,
 
41
                              const void * data );
 
42
 
 
43
void*    tr_list_remove( tr_list **        list,
 
44
                         const void *      b,
 
45
                         TrListCompareFunc compare_func );
 
46
 
 
47
void     tr_list_insert_sorted( tr_list **        list,
 
48
                                void *            data,
 
49
                                TrListCompareFunc compare_func );
 
50
 
 
51
tr_list* tr_list_find( tr_list *         list,
 
52
                       const void *      b,
 
53
                       TrListCompareFunc compare_func );
 
54
 
 
55
tr_list* tr_list_find_data( tr_list *    list,
 
56
                            const void * data );
 
57
 
 
58
void     tr_list_foreach( tr_list *         list,
 
59
                          TrListForeachFunc foreach_func );
60
60
 
61
61
#endif /* TR_LIST_H */
62
62