• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/libtransmission/

Lines Matching defs:torrent

76 /* assuming a 16 KiB block, a 32-bit block index gives us a maximum torrent size of 63 TiB.
185 #define TR_PREFS_KEY_PEER_LIMIT_TORRENT "peer-limit-per-torrent"
207 #define TR_PREFS_KEY_SCRIPT_TORRENT_DONE_FILENAME "script-torrent-done-filename"
208 #define TR_PREFS_KEY_SCRIPT_TORRENT_DONE_ENABLED "script-torrent-done-enabled"
219 #define TR_PREFS_KEY_UPLOAD_SLOTS_PER_TORRENT "upload-slots-per-torrent"
221 #define TR_PREFS_KEY_TRASH_ORIGINAL "trash-original-torrent-files"
336 * This is where transmission stores its .torrent files, .resume files,
354 * and can be overridden on a per-torrent basis by tr_ctorSetDownloadDir().
365 * @brief Set the torrent's bandwidth priority.
370 * @brief Get the torrent's bandwidth priority.
378 * When you add a new torrent and the session's incomplete directory is enabled,
379 * the new torrent will start downloading into that directory, and then be moved
380 * to tr_torrent.downloadDir when the torrent is finished downloading.
386 * a new location, that becomes the torrent's new downloadDir and the torrent
517 TR_RPC_TORRENT_CHANGED, /* catch-all for the "torrent-set" rpc method */
531 * removing the torrent itself. For example the client may
532 * need to keep the torrent alive long enough to cleanly close
545 * such as a torrent being added, removed, started, stopped, etc.
753 **** tr_torrentStart() is called, the torrent will be moved into the
756 **** To bypass the queue and unconditionally start the torrent use
769 /** @brief Return the queued torrent's position in the queue it's in. [0...n) */
772 /** @brief Set the queued torrent's position in the queue it's in.
809 /** @brief Consider torrent as 'stalled' when it's been inactive for N minutes.
813 /** @return the number of minutes a torrent can be idle before being considered as stalled */
825 /** @brief Set a callback that is invoked when the queue starts a torrent */
826 void tr_torrentSetQueueStartCallback( tr_torrent * torrent, void (*callback)( tr_torrent *, void * ), void * user_data );
888 /* The torrent associated with this message,
889 * or a module name such as "Port Forwarding" for non-torrent messages,
973 a torrent with a tr_ctor. The other functions are optional.
994 /** @brief Create a torrent constructor object used to instantiate a tr_torrent
1000 /** @brief Free a torrent constructor object */
1003 /** @brief Set whether or not to delete the source .torrent file
1004 when the torrent is added. (Default: False) */
1013 /** @brief Set the constructor's metainfo from a local .torrent file */
1024 /** @brief Set how many peers this torrent can connect to. (Default: 50) */
1027 /** @brief Set the download folder for the torrent being added with this ctor.
1035 * @brief Set the incompleteDir for this torrent.
1044 /** Set whether or not the torrent begins downloading/seeding when created.
1050 /** @brief Set the priorities for files in a torrent */
1056 /** @brief Set the download flag for files in a torrent */
1086 /** @brief Get the "delete .torrent file" flag from this peer constructor */
1093 /** @brief Get the .torrent file that this ctor's metainfo came from,
1122 * 2. setme_info->torrent's value can't be set unless ctor's session variable
1133 /** Instantiate a single torrent.
1135 TR_EINVALID if the torrent couldn't be parsed, or
1136 TR_EDUPLICATE if there's already a matching torrent object. */
1152 void tr_torrentFree( tr_torrent * torrent );
1156 /** @brief Removes our .torrent and .resume files for
1157 this torrent, then calls tr_torrentFree(). */
1158 void tr_torrentRemove( tr_torrent * torrent,
1162 /** @brief Start a torrent */
1163 void tr_torrentStart( tr_torrent * torrent );
1165 /** @brief Stop (pause) a torrent */
1166 void tr_torrentStop( tr_torrent * torrent );
1176 * @brief Tell transmsision where to find this torrent's local data.
1178 * if move_from_previous_location is `true', the torrent's incompleteDir
1180 * to the torrent's downloadDir.
1182 void tr_torrentSetLocation( tr_torrent * torrent,
1188 uint64_t tr_torrentGetBytesLeftToAllocate( const tr_torrent * torrent );
1191 * @brief Returns this torrent's unique ID.
1197 int tr_torrentId( const tr_torrent * torrent );
1209 * @return this torrent's name.
1214 * @brief find the location of a torrent's file by looking with and without
1219 * @param tor the torrent whose file we're looking for
1325 void tr_torrentSetFilePriorities( tr_torrent * torrent,
1331 * @brief Get this torrent's file priorities.
1337 tr_priority_t* tr_torrentGetFilePriorities( const tr_torrent * torrent );
1340 void tr_torrentSetFileDLs( tr_torrent * torrent,
1346 const tr_info * tr_torrentInfo( const tr_torrent * torrent );
1348 /* Raw function to change the torrent's downloadDir field.
1351 void tr_torrentSetDownloadDir( tr_torrent * torrent, const char * path );
1353 const char * tr_torrentGetDownloadDir( const tr_torrent * torrent );
1356 * Returns the root directory of where the torrent is.
1358 * This will usually be the downloadDir. However if the torrent
1368 * Returns a newly-allocated string with a magnet link of the torrent.
1393 * @brief Modify a torrent's tracker list.
1395 * This updates both the `torrent' object's tracker list
1396 * and the metainfo file in tr_sessionGetConfigDir()'s torrent subdirectory.
1398 * @param torrent The torrent whose tracker list is to be modified
1406 tr_torrentSetAnnounceList( tr_torrent * torrent,
1418 TR_SEED, /* has the entire torrent */
1419 TR_PARTIAL_SEED /* has the desired pieces, but not the entire torrent */
1424 * @param wasRunning whether or not the torrent was running when
1427 typedef void ( tr_torrent_completeness_func )( tr_torrent * torrent,
1432 typedef void ( tr_torrent_ratio_limit_hit_func )( tr_torrent * torrent,
1435 typedef void ( tr_torrent_idle_limit_hit_func )( tr_torrent * torrent,
1440 * Register to be notified whenever a torrent's "completeness"
1441 * changes. This will be called, for example, when a torrent
1453 tr_torrent * torrent,
1457 void tr_torrentClearCompletenessCallback( tr_torrent * torrent );
1461 typedef void ( tr_torrent_metadata_func )( tr_torrent * torrent,
1464 * Register to be notified whenever a torrent changes from
1475 * Register to be notified whenever a torrent's ratio limit
1476 * has been hit. This will be called when the torrent's
1482 tr_torrent * torrent,
1486 void tr_torrentClearRatioLimitHitCallback( tr_torrent * torrent );
1489 * Register to be notified whenever a torrent's idle limit
1490 * has been hit. This will be called when the seeding torrent's
1496 tr_torrent * torrent,
1500 void tr_torrentClearIdleLimitHitCallback( tr_torrent * torrent );
1516 void tr_torrentManualUpdate( tr_torrent * torrent );
1518 bool tr_torrentCanManualUpdate( const tr_torrent * torrent );
1572 tr_peer_stat * tr_torrentPeers( const tr_torrent * torrent,
1584 /* we won't (announce,scrape) this torrent to this tracker because
1585 * the torrent is stopped, or because of an error, or whatever */
1588 /* we will (announce,scrape) this torrent to this tracker, and are
1592 /* it's time to (announce,scrape) this torrent, and we're waiting on a
1596 /* we're (announcing,scraping) this torrent right now */
1695 tr_tracker_stat * tr_torrentTrackers( const tr_torrent * torrent,
1704 * @brief get the download speeds for each of this torrent's webseed sources.
1713 double* tr_torrentWebSpeeds_KBps( const tr_torrent * torrent );
1722 tr_file_stat * tr_torrentFiles( const tr_torrent * torrent,
1737 void tr_torrentAvailability( const tr_torrent * torrent,
1741 void tr_torrentAmountFinished( const tr_torrent * torrent,
1745 void tr_torrentVerify( tr_torrent * torrent );
1751 /** @brief a part of tr_info that represents a single file of the torrent's content */
1760 uint64_t offset; /* file begins at the torrent's nth byte */
1764 /** @brief a part of tr_info that represents a single piece of the torrent's content */
1774 /** @brief information about a torrent that comes from its metainfo file */
1777 /* total size of the torrent, in bytes */
1780 /* the torrent's name */
1783 /* Path to torrent Transmission's internal copy of the .torrent file. */
1784 char * torrent;
1820 * What the torrent is doing right now.
1865 /** @brief Used by tr_torrentStat() to tell clients about a torrent's state and statistics */
1868 /** The torrent's unique Id.
1872 /** What is this torrent doing right now? */
1879 /** A warning or error message regarding the torrent.
1890 /** How much has been downloaded of the entire torrent.
1894 /** How much of the metadata the torrent has.
1895 For torrents added from a .torrent this will always be 1.
1901 from percentComplete if the user wants only some of the torrent's files.
1907 This is 1 if the ratio is reached or the torrent is set to seed forever.
1911 /** Speed all data being sent for this torrent.
1915 /** Speed all data being received for this torrent.
1919 /** Speed all piece being sent for this torrent.
1923 /** Speed all piece being received for this torrent.
1929 /** If downloading, estimated number of seconds left until the torrent is done.
1953 if only some of the torrent's files are wanted.
1966 this torrent. If you're on a poisoned torrent, this number can
1970 /** Byte count of all data you've ever uploaded for this torrent. */
1974 for this torrent. If you deleted the files and downloaded a second
1978 /** Byte count of all the checksum-verified data we have for this torrent.
1982 /** Byte count of all the partial piece data we have for this torrent.
1987 /** time when one or more of the torrent's trackers will
1997 /** When the torrent was first added. */
2000 /** When the torrent finished downloading. */
2003 /** When the torrent was last started. */
2006 /** The last time we uploaded or downloaded piece data on this torrent. */
2013 /** Cumulative seconds the torrent's ever spent downloading */
2016 /** Cumulative seconds the torrent's ever spent seeding */
2019 /** A torrent is considered finished if it has met its seed ratio.
2023 /** This torrent's queue position.
2027 /** True if the torrent is running, but has been idle for long enough
2034 on the torrent. This is typically called by the GUI clients every
2035 second or so to get a new snapshot of the torrent's status. */
2036 const tr_stat * tr_torrentStat( tr_torrent * torrent );
2041 const tr_stat * tr_torrentStatCached( tr_torrent * torrent );
2044 void tr_torrentSetAddedDate( tr_torrent * torrent,
2048 void tr_torrentSetActivityDate( tr_torrent * torrent,
2052 void tr_torrentSetDoneDate( tr_torrent * torrent, time_t doneDate );