Navigation


Changeset 1216:581bbd48524a in freeDiameter for extensions/rt_redirect


Ignore:
Timestamp:
Jun 19, 2013, 11:03:24 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Children:
1217:3f7c74ef3787, 1218:152466ff49f8
Phase:
public
Message:

Change prototype of rt_out callbacks to allow disposal of messages

Location:
extensions/rt_redirect
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/rt_redirect/redir_out.c

    r1127 r1216  
    3838
    3939/* Find the data pertinent to a type in the input data */
    40 static int get_data_to_match(enum redir_h_u type, struct msg * msg, union matchdata * data, int * nodata)
     40static int get_data_to_match(enum redir_h_u type, struct msg *msg, union matchdata * data, int * nodata)
    4141{
    4242        TRACE_ENTRY("%d %p %p %p", type, msg, data, nodata);
     
    220220
    221221/* OUT callback */
    222 int redir_out_cb(void * cbdata, struct msg * msg, struct fd_list * candidates)
     222int redir_out_cb(void * cbdata, struct msg ** pmsg, struct fd_list * candidates)
    223223{
    224224        int i, ret = 0;
     225        struct msg * msg = *pmsg;
    225226       
    226227        TRACE_ENTRY("%p %p %p", cbdata, msg, candidates);
  • extensions/rt_redirect/rt_redir.h

    r740 r1216  
    171171
    172172/* Out callback */
    173 int redir_out_cb(void * cbdata, struct msg * msg, struct fd_list * candidates);
     173int redir_out_cb(void * cbdata, struct msg ** pmsg, struct fd_list * candidates);
Note: See TracChangeset for help on using the changeset viewer.