Lines Matching refs:ctor
1321 addTorrentImpl( struct tr_rpc_idle_data * data, tr_ctor * ctor )
1325 tr_torrent * tor = tr_torrentNew( ctor, &err );
1327 tr_ctorFree( ctor );
1356 tr_ctor * ctor;
1375 tr_ctorSetMetainfo( data->ctor, response, response_byte_count );
1376 addTorrentImpl( data->data, data->ctor );
1440 tr_ctor * ctor = tr_ctorNew( session );
1447 tr_ctorSetDownloadDir( ctor, TR_FORCE, str );
1450 tr_ctorSetPaused( ctor, TR_FORCE, boolVal );
1453 tr_ctorSetPeerLimit( ctor, TR_FORCE, i );
1456 tr_ctorSetBandwidthPriority( ctor, i );
1461 tr_ctorSetFilesWanted( ctor, files, fileCount, false );
1467 tr_ctorSetFilesWanted( ctor, files, fileCount, true );
1474 tr_ctorSetFilePriorities( ctor, files, fileCount, TR_PRI_LOW );
1480 tr_ctorSetFilePriorities( ctor, files, fileCount, TR_PRI_NORMAL );
1486 tr_ctorSetFilePriorities( ctor, files, fileCount, TR_PRI_HIGH );
1496 d->ctor = ctor;
1507 tr_ctorSetMetainfo( ctor, (uint8_t*)metainfo, len );
1512 tr_ctorSetMetainfoFromMagnetLink( ctor, fname );
1516 tr_ctorSetMetainfoFromFile( ctor, fname );
1519 addTorrentImpl( idle_data, ctor );