Navigation



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
  • include/freeDiameter/libfdproto.h

    r1097 r1098  
    25502550
    25512551
     2552/* Helper for the hooks mechanism, for use from libfdcore */
     2553struct fd_msg_pmdl {
     2554        struct fd_list sentinel; /* if the sentinel.o field is NULL, the structure is not initialized. Otherwise it points to the cleanup function in libfdcore. */
     2555        pthread_mutex_t lock;
     2556};
     2557#define FD_MSG_PMDL_INITIALIZER(pmdl_ptr)        { FD_LIST_INITIALIZER(  (pmdl_ptr)->sentinel       ), PTHREAD_MUTEX_INITIALIZER }
     2558struct fd_msg_pmdl * fd_msg_pmdl_get(struct msg * msg);
     2559
    25522560/***************************************/
    25532561/*   Manage AVP values                 */
Note: See TracChangeset for help on using the changeset viewer.