Ignore:
Timestamp:
Mar 26, 2011, 12:06:04 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) remove the tr_session argument from the announce/scrape response callbacks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer-http.c

    r12229 r12238  
    159159struct announce_data
    160160{
    161     tr_session * session;
    162161    tr_announce_response response;
    163162    tr_announce_response_func * response_func;
     
    172171
    173172    if( data->response_func != NULL )
    174         data->response_func( data->session,
    175                              &data->response,
    176                              data->response_func_user_data );
     173        data->response_func( &data->response, data->response_func_user_data );
    177174
    178175    tr_free( data->response.pex6 );
     
    286283
    287284    d = tr_new0( struct announce_data, 1 );
    288     d->session = session;
    289285    d->response_func = response_func;
    290286    d->response_func_user_data = response_func_user_data;
     
    305301struct scrape_data
    306302{
    307     tr_session * session;
    308303    tr_scrape_response response;
    309304    tr_scrape_response_func * response_func;
     
    318313
    319314    if( data->response_func != NULL )
    320         data->response_func( data->session,
    321                              &data->response,
    322                              data->response_func_user_data );
     315        data->response_func( &data->response, data->response_func_user_data );
    323316
    324317    tr_free( data->response.errmsg );
     
    437430
    438431    d = tr_new0( struct scrape_data, 1 );
    439     d->session = session;
    440432    d->response.url = tr_strdup( request->url );
    441433    d->response_func = response_func;
Note: See TracChangeset for help on using the changeset viewer.