~ubuntu-branches/ubuntu/jaunty/transmission/jaunty-security

« back to all changes in this revision

Viewing changes to libtransmission/completion.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:
1
1
/******************************************************************************
2
 
 * $Id: completion.h 6092 2008-06-09 00:59:33Z charles $
 
2
 * $Id: completion.h 6935 2008-10-20 17:54:56Z charles $
3
3
 *
4
4
 * Copyright (c) 2005-2008 Transmission authors and contributors
5
5
 *
30
30
struct tr_bitfield;
31
31
typedef struct tr_completion tr_completion;
32
32
 
33
 
tr_completion  * tr_cpInit( tr_torrent * );
34
 
void             tr_cpClose( tr_completion * );
 
33
tr_completion *            tr_cpInit( tr_torrent * );
 
34
 
 
35
void                       tr_cpClose( tr_completion * );
35
36
 
36
37
/* General */
37
38
 
38
 
cp_status_t      tr_cpGetStatus ( const tr_completion * );
39
 
uint64_t         tr_cpHaveTotal( const tr_completion * );
40
 
uint64_t         tr_cpHaveValid( const tr_completion * );
41
 
uint64_t         tr_cpLeftUntilComplete( const tr_completion * );
42
 
uint64_t         tr_cpLeftUntilDone( const tr_completion * );
43
 
uint64_t         tr_cpSizeWhenDone( const tr_completion * );
44
 
float            tr_cpPercentComplete( const tr_completion * );
45
 
float            tr_cpPercentDone( const tr_completion * );
46
 
void             tr_cpInvalidateDND ( tr_completion * );
47
 
void             tr_cpGetAmountDone( const tr_completion *, float * tab, int tabCount );
 
39
tr_completeness            tr_cpGetStatus( const tr_completion * );
 
40
 
 
41
uint64_t                   tr_cpHaveTotal( const tr_completion * );
 
42
 
 
43
uint64_t                   tr_cpHaveValid( const tr_completion * );
 
44
 
 
45
uint64_t                   tr_cpLeftUntilComplete( const tr_completion * );
 
46
 
 
47
uint64_t                   tr_cpLeftUntilDone( const tr_completion * );
 
48
 
 
49
uint64_t                   tr_cpSizeWhenDone( const tr_completion * );
 
50
 
 
51
float                      tr_cpPercentComplete( const tr_completion * );
 
52
 
 
53
float                      tr_cpPercentDone( const tr_completion * );
 
54
 
 
55
void                       tr_cpInvalidateDND( tr_completion * );
 
56
 
 
57
void                       tr_cpGetAmountDone( const   tr_completion * completion,
 
58
                                               float                 * tab,
 
59
                                               int                     tabCount );
48
60
 
49
61
/* Pieces */
50
 
int              tr_cpPieceIsComplete( const tr_completion *, tr_piece_index_t piece );
51
 
void             tr_cpPieceAdd( tr_completion *, tr_piece_index_t piece );
52
 
void             tr_cpPieceRem( tr_completion *, tr_piece_index_t piece );
 
62
int                        tr_cpPieceIsComplete( const tr_completion * completion,
 
63
                                                 tr_piece_index_t      piece );
 
64
 
 
65
void                       tr_cpPieceAdd( tr_completion    * completion,
 
66
                                          tr_piece_index_t   piece );
 
67
 
 
68
void                       tr_cpPieceRem( tr_completion     * completion,
 
69
                                           tr_piece_index_t   piece );
53
70
 
54
71
/* Blocks */
55
 
int              tr_cpBlockIsComplete( const tr_completion *, tr_block_index_t block );
56
 
void             tr_cpBlockAdd( tr_completion *, tr_block_index_t block );
57
 
tr_errno         tr_cpBlockBitfieldSet( tr_completion *, struct tr_bitfield * );
58
 
int              tr_cpMissingBlocksInPiece( const tr_completion * cp,
59
 
                                            tr_piece_index_t piece );
 
72
int                        tr_cpBlockIsComplete( const tr_completion * completion,
 
73
                                                 tr_block_index_t block );
 
74
 
 
75
void                       tr_cpBlockAdd( tr_completion * completion,
 
76
                                          tr_block_index_t block );
 
77
 
 
78
int                        tr_cpBlockBitfieldSet( tr_completion      * completion,
 
79
                                                  struct tr_bitfield * blocks );
 
80
 
 
81
int                        tr_cpMissingBlocksInPiece( const tr_completion  * completion,
 
82
                                                      tr_piece_index_t       piece );
60
83
 
61
84
 
62
85
const struct tr_bitfield * tr_cpPieceBitfield( const tr_completion* );
 
86
 
63
87
const struct tr_bitfield * tr_cpBlockBitfield( const tr_completion * );
64
88
 
65
89
#endif