Changeset 2104
- Timestamp:
- Jun 16, 2007, 9:53:43 PM (15 years ago)
- Location:
- branches/file_selection
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/file_selection/cli/transmissioncli.c
r2103 r2104 96 96 progress_func( const meta_info_builder_t * builder UNUSED, 97 97 size_t pieceIndex, 98 size_t pieceCount,99 98 int * abortFlag UNUSED, 100 99 void * userData UNUSED ) -
branches/file_selection/gtk/make-meta-ui.c
r2103 r2104 53 53 progress_cb( const meta_info_builder_t * builder UNUSED, 54 54 size_t pieceIndex, 55 size_t pieceCount,56 55 int * abortFlag, 57 56 void * user_data UNUSED) 58 57 { 59 g_message ("%lu of %lu", pieceIndex, pieceCount);58 g_message ("%lu of %lu", pieceIndex, builder->pieceCount); 60 59 61 60 *abortFlag = *(gboolean*)user_data; -
branches/file_selection/libtransmission/makemeta.c
r2103 r2104 234 234 this will take a little tweaking to ioRecalculateHash, 235 235 probably will get done Sunday or Monday */ 236 (progress_func)( builder, 0, t.info.pieceCount,&abort, progress_func_user_data );236 (progress_func)( builder, 0, &abort, progress_func_user_data ); 237 237 238 238 for( i=0; i<(size_t)t.info.pieceCount; ++i ) { -
branches/file_selection/libtransmission/makemeta.h
r2103 r2104 42 42 tr_metaInfoBuilderCreate( const char * topFile ); 43 43 44 /* set abortFlag to nonzero to abort the checksum generation */ 44 /** 45 * Called periodically during the checksum generation. 46 * 47 * 'builder' is the builder passed into tr_makeMetaInfo 48 * 'pieceIndex' is the current piece having a checksum generated 49 * 'abortFlag' is an int pointer to set if the user wants to abort 50 * 'userData' is the data passed into tr_makeMetaInfo 51 */ 45 52 typedef 46 53 void (*makemeta_progress_func)(const meta_info_builder_t * builder, 47 54 size_t pieceIndex, 48 size_t pieceCount,49 55 int * abortFlag, 50 56 void * userData ); 57 58 /** 59 * Builds a .torrent metainfo file. 60 * 61 * 'outputFile' if NULL, builder->top + ".torrent" will be used. 62 * 'progress_func' a client-implemented callback function (see above) 63 * 'progress_func_user_data' is passed back to the user in the progress func. 64 * It can be used to pass a resource or handle from tr_makeMetaInfo's 65 * caller to progress_func, or anything else. Pass NULL if not needed. 66 */ 51 67 int 52 68 tr_makeMetaInfo( const meta_info_builder_t * builder, 53 69 makemeta_progress_func progress_func, 54 70 void * progress_func_user_data, 55 const char * outputFile _or_NULL,71 const char * outputFile, 56 72 const char * announce, 57 73 const char * comment,
Note: See TracChangeset
for help on using the changeset viewer.