Navigation


Changeset 1098:f38d77f9cfd3 in freeDiameter for libfdproto


Ignore:
Timestamp:
May 9, 2013, 12:59:34 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Initial implementation of the hook mechanism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/messages.c

    r1096 r1098  
    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.