Ignore:
Timestamp:
Jan 31, 2013, 9:58:25 PM (8 years ago)
Author:
jordan
Message:

(libT) change the API signature for tr_torrentVerify() s.t. client code can be notified when the verify is finished

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r13868 r13913  
    14401440
    14411441typedef void (tr_torrent_metadata_func)(tr_torrent  * torrent,
    1442                                            void        * user_data);
     1442                                        void        * user_data);
    14431443/**
    14441444 * Register to be notified whenever a torrent changes from
     
    17231723                               int                 size);
    17241724
    1725 void tr_torrentVerify (tr_torrent * torrent);
     1725/**
     1726 * Callback function invoked when a torrent finishes being verified.
     1727 *
     1728 * @param torrent the torrent that was verified
     1729 * @param aborted true if the verify ended prematurely for some reason,
     1730 *                such as tr_torrentStop() or tr_torrentSetLocation()
     1731 *                being called during verification.
     1732 * @param callback_data the user-defined pointer from tr_torrentVerify()
     1733 */
     1734typedef void (*tr_verify_done_func)(tr_torrent  * torrent,
     1735                                    bool          aborted,
     1736                                    void        * user_data);
     1737
     1738/**
     1739 * Queue a torrent for verification.
     1740 *
     1741 * If callback_func is non-NULL, it will be called from the libtransmission
     1742 * thread after the torrent's completness state is updated after the
     1743 * file verification pass.
     1744 */
     1745void tr_torrentVerify (tr_torrent           * torrent,
     1746                       tr_verify_done_func    callback_func_or_NULL,
     1747                       void                 * callback_data_or_NULL);
    17261748
    17271749/***********************************************************************
Note: See TracChangeset for help on using the changeset viewer.