Navigation


Changeset 1101:40b48a3997a2 in freeDiameter for libfdproto


Ignore:
Timestamp:
May 9, 2013, 1:06:03 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Parents:
1098:f38d77f9cfd3 (diff), 1100:4b7192d0ffde (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Phase:
public
Message:

Merged

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/messages.c

    r1098 r1101  
    12551255                return anscb ? EINVAL : 0; /* we associate with requests only */
    12561256       
    1257         CHECK_PARAMS( (anscb == NULL)    || (msg->msg_cb.anscb == NULL) ); /* We are not overwritting a cb */
    1258         CHECK_PARAMS( (expirecb == NULL) || (msg->msg_cb.expirecb == NULL) ); /* We are not overwritting a cb */
     1257        CHECK_PARAMS( (anscb == NULL)    || (msg->msg_cb.anscb == NULL) ); /* We are not overwriting a cb */
     1258        CHECK_PARAMS( (expirecb == NULL) || (msg->msg_cb.expirecb == NULL) ); /* We are not overwriting a cb */
    12591259       
    12601260        /* Associate callback and data with the message, if any */
  • libfdproto/messages.c

    r1099 r1101  
    137137        DiamId_t                 msg_src_id;            /* Diameter Id of the peer this message was received from. This string is malloc'd and must be freed */
    138138        size_t                   msg_src_id_len;        /* cached length of this string */
    139        
     139        struct fd_msg_pmdl       msg_pmdl;              /* list of permessagedata structures. */
    140140};
    141141
     
    674674        }
    675675       
     676        if ((obj->type == MSG_MSG) && (_M(obj)->msg_pmdl.sentinel.o != NULL)) {
     677                ((void (*)(struct fd_msg_pmdl *))_M(obj)->msg_pmdl.sentinel.o)(&_M(obj)->msg_pmdl);
     678        }
     679       
    676680        /* free the object */
    677681        free(obj);
     
    14961500       
    14971501        return 0;
     1502}
     1503
     1504/* Retrieve the location of the pmd list for the message; return NULL if failed */
     1505struct fd_msg_pmdl * fd_msg_pmdl_get(struct msg * msg)
     1506{
     1507        CHECK_PARAMS_DO( CHECK_MSG(msg), return NULL );
     1508        return &msg->msg_pmdl;
    14981509}
    14991510
Note: See TracChangeset for help on using the changeset viewer.