Navigation


Changeset 1128:7c5449ddc434 in freeDiameter for include


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

New macro HOOK_MASK to ease call of the fd_hook_register function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdcore.h

    r1127 r1128  
    10771077struct fd_hook_hdl;
    10781078
     1079/* Helper for building a mask of hooks for registration */
     1080#define HOOK_MASK(hooklist...)  fd_hook_mask_helper(0, ## hooklist, -1)
     1081
    10791082/*
    10801083 * FUNCTION:    fd_hook_register
    10811084 *
    10821085 * PARAMETERS:
    1083  *  type_mask     : A bitmask of fd_hook_type bits for which this cb is registered, e.g. ((1 << HOOK_MESSAGE_RECEIVED) | (1 << HOOK_MESSAGE_SENT))
     1086 *  type_mask     : A bitmask of fd_hook_type bits for which this cb is registered, e.g. HOOK_MASK( HOOK_MESSAGE_RECEIVED, HOOK_MESSAGE_SENT )
    10841087 *  fd_hook_cb    : The callback function to register (see prototype above).
    10851088 *  regdata       : Pointer to pass to the callback when it is called. The data is opaque to the daemon.
     
    11101113struct fd_hook_permsgdata * fd_hook_get_request_pmd(struct fd_hook_data_hdl *data_hdl, struct msg * answer);
    11111114
     1115/* The following is used by HOOK_MASK macro */
     1116uint32_t fd_hook_mask_helper(int dummy, ...);
    11121117
    11131118/*============================================================*/
Note: See TracChangeset for help on using the changeset viewer.