Navigation


Changeset 639:95a784729cac in freeDiameter for extensions/app_radgw


Ignore:
Timestamp:
Dec 20, 2010, 1:07:06 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added new opaque pointer to fd_sess_handler_create and fd_disp_register for usability. Bumped API version number.

Location:
extensions/app_radgw
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/rgwx_acct.c

    r564 r639  
    173173        memset(new, 0, sizeof(struct rgwp_config));
    174174       
    175         CHECK_FCT( fd_sess_handler_create( &new->sess_hdl, free ) );
     175        CHECK_FCT( fd_sess_handler_create( &new->sess_hdl, free, NULL ) );
    176176        new->confstr = conffile;
    177177       
     
    284284        TRACE_ENTRY("%p", state);
    285285        CHECK_PARAMS_DO( state, return );
    286         CHECK_FCT_DO( fd_sess_handler_destroy( &state->sess_hdl ),  );
     286        CHECK_FCT_DO( fd_sess_handler_destroy( &state->sess_hdl, NULL ),  );
    287287        free(state);
    288288        return;
  • extensions/app_radgw/rgwx_auth.c

    r532 r639  
    139139        memset(new, 0, sizeof(struct rgwp_config));
    140140       
    141         CHECK_FCT( fd_sess_handler_create( &new->sess_hdl, free ) );
     141        CHECK_FCT( fd_sess_handler_create( &new->sess_hdl, free, NULL ) );
    142142        new->confstr = confstr;
    143143       
     
    225225        TRACE_ENTRY("%p", state);
    226226        CHECK_PARAMS_DO( state, return );
    227         CHECK_FCT_DO( fd_sess_handler_destroy( &state->sess_hdl ),  );
     227        CHECK_FCT_DO( fd_sess_handler_destroy( &state->sess_hdl, NULL ),  );
    228228        free(state);
    229229        return;
  • extensions/app_radgw/rgwx_echodrop.c

    r403 r639  
    3939
    4040/* If a session is destroyed, empty the list of ed_saved_attribute */
    41 static void state_delete(void * arg, char * sid) {
     41static void state_delete(void * arg, char * sid, void * opaque) {
    4242        struct fd_list * list = (struct fd_list *)arg;
    4343       
     
    6969       
    7070        /* Create the session handler */
    71         CHECK_FCT( fd_sess_handler_create( &new->sess_hdl, state_delete ) );
     71        CHECK_FCT( fd_sess_handler_create( &new->sess_hdl, state_delete, NULL ) );
    7272       
    7373        /* Parse the configuration file */
     
    107107        TRACE_ENTRY("%p", state);
    108108        CHECK_PARAMS_DO( state, return );
    109         CHECK_FCT_DO( fd_sess_handler_destroy( &state->sess_hdl ),  );
     109        CHECK_FCT_DO( fd_sess_handler_destroy( &state->sess_hdl, NULL ),  );
    110110        while (! FD_IS_LIST_EMPTY(&state->attributes) ) {
    111111                struct fd_list * li = state->attributes.next;
  • extensions/app_radgw/rgwx_sip.c

    r584 r639  
    262262        memset(new, 0, sizeof(struct rgwp_config));
    263263       
    264         CHECK_FCT( fd_sess_handler_create( &new->sess_hdl, free ) );
     264        CHECK_FCT( fd_sess_handler_create( &new->sess_hdl, free, NULL ) );
    265265        new->confstr = conffile;
    266266       
     
    316316        CHECK_PARAMS_DO( state, return );
    317317       
    318         CHECK_FCT_DO( fd_sess_handler_destroy( &state->sess_hdl ),  );
     318        CHECK_FCT_DO( fd_sess_handler_destroy( &state->sess_hdl, NULL ),  );
    319319       
    320320        nonce_deletelistnonce(state);
Note: See TracChangeset for help on using the changeset viewer.