Searched refs:tr_new (Results 1 - 23 of 23) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/libtransmission/
H A Dtorrent-magnet.c83 m = tr_new( struct tr_incomplete_metadata, 1 );
85 m->metadata = tr_new( uint8_t, size );
88 m->piecesNeeded = tr_new( struct metadata_node, n );
177 char * buf = tr_new( char, l );
H A Dcache.c165 uint8_t * buf = tr_new( uint8_t, n * MAX_BLOCK_SIZE );
217 struct run_info * runs = tr_new( struct run_info, tr_ptrArraySize( &cache->blocks ) );
324 cb = tr_new( struct cache_block, 1 );
400 struct run_info * runs = tr_new( struct run_info, tr_ptrArraySize( &cache->blocks ) );
H A Dpeer-msgs.c856 uint8_t * tmp = tr_new( uint8_t, len );
960 uint8_t * tmp = tr_new( uint8_t, msglen );
1032 uint8_t * tmp = tr_new( uint8_t, msglen );
1415 uint8_t * tmp = tr_new( uint8_t, msglen );
1752 tr_block_index_t * blocks = tr_new( tr_block_index_t, numwant );
2157 diffs.added = tr_new( tr_pex, newCount );
2159 diffs.dropped = tr_new( tr_pex, msgs->pexCount );
2161 diffs.elements = tr_new( tr_pex, newCount + msgs->pexCount );
2167 diffs6.added = tr_new( tr_pex, newCount6 );
2169 diffs6.dropped = tr_new( tr_pe
[all...]
H A Dlist.c27 ret = tr_new( tr_list, 1 );
H A Dwebseed.c272 data = tr_new( struct connection_succeeded_data, 1 );
294 data = tr_new( struct write_block_data, 1 );
355 blocks = tr_new( tr_block_index_t, want*2 );
366 struct tr_webseed_task * task = tr_new( struct tr_webseed_task, 1 );
H A Dutils.c620 pch = buf = tr_new( char, bufLen );
671 char * ret = tr_new( char, n + 1 );
736 ret = tr_new( char, len + 1 );
1290 char * out = tr_new( char, buflen );
1441 sorted = tr_new( int, n );
1452 uniq = tr_new( int, n );
H A Dverify.c262 node = tr_new( struct verify_node, 1 );
H A Dpeer-mgr.c385 tr_peer * peer = tr_new( tr_peer, 1 );
1088 pool = tr_new( tr_piece_index_t, inf->pieceCount );
1490 cancel = tr_new( struct block_request, cancel_buflen );
1630 tr_block_index_t * blocks = tr_new( tr_block_index_t, t->requestCount );
2347 atoms = tr_new( struct peer_atom *, atomCount );
2356 atoms = tr_new( struct peer_atom *, n );
2947 piece_is_interesting = tr_new( bool, n );
2978 rechoke = tr_new( struct tr_rechoke_info, peerCount );
3269 ret = tr_new( tr_peer *, peerCount );
3490 tr_peer ** peers = tr_new( tr_pee
[all...]
H A Dcompletion.c286 bool * flags = tr_new( bool, n );
H A Dutils.h301 #define tr_new( struct_type, n_structs ) \ macro
H A Dbencode.c41 #include "utils.h" /* tr_new(), tr_free() */
604 setme = val->val.s.str.ptr = tr_new( char, byteCount + 1 );
958 struct KeyIndex * indices = tr_new( struct KeyIndex, nKeys );
1045 struct SaveNode * stack = tr_new( struct SaveNode, stackAlloc );
1309 struct ParentState * parentState = tr_new( struct ParentState, 1 );
H A Dresume.c182 tr_file_index_t * dl = tr_new( tr_file_index_t, n );
183 tr_file_index_t * dnd = tr_new( tr_file_index_t, n );
H A Drpc-server.c101 unsigned char * buf = tr_new( unsigned char, n+1 );
185 struct tr_mimepart * p = tr_new( struct tr_mimepart, 1 );
H A Dbencode-test.c420 in = tr_new( uint8_t, depth * 2 + 1 );
H A Dfdlimit.c428 set->begin = tr_new( struct tr_cached_file, n );
H A Dmakemeta.c79 struct FileList * node = tr_new( struct FileList, 1 );
H A Dmetainfo.c264 char * walk = scrape = tr_new( char, alloc_len );
H A Dtr-dht.c319 cl = tr_new( struct bootstrap_closure, 1 );
H A Dhandshake.c879 padc = tr_new (char, handshake->pad_c_len);
H A Dsession.c1762 torrents = tr_new( tr_torrent *, session->torrentCount );
1933 data->torrents = tr_new( tr_torrent *, n );
H A Dpeer-io.c101 ret = tr_new( struct tr_datatype, 1 );
H A Dtorrent.c640 firstFiles = tr_new( int, inf->pieceCount );
3013 data = tr_new( struct LocationData, 1 );
3193 tr_torrent ** tmp = tr_new( tr_torrent *, session->torrentCount );
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/utils/
H A Dshow.c171 files = tr_new( tr_file*, inf->fileCount );

Completed in 239 milliseconds