[−][src]Function transmission_sys::tr_makeMetaInfo
pub unsafe extern "C" fn tr_makeMetaInfo(
builder: *mut tr_metainfo_builder,
outputFile: *const c_char,
trackers: *const tr_tracker_info,
trackerCount: c_int,
comment: *const c_char,
isPrivate: bool
)
@brief create a new .torrent file
This is actually done in a worker thread, not the main thread! Otherwise the client's interface would lock up while this runs.
It is the caller's responsibility to poll builder->isDone from time to time! When the worker thread sets that flag, the caller must pass the builder to tr_metaInfoBuilderFree().
@param outputFile if NULL, builder->top + ".torrent" will be used.
@param trackers An array of trackers, sorted by tier from first to last.
NOTE: only the tier' and
announce' fields are used.
@param trackerCount size of the `trackers' array