Mercurial > hg > freeDiameter
diff include/freeDiameter/libfdcore.h @ 1329:175f2eb883a0
Add function to retrieve pmd structure associated with a request.
Returns NULL in case of error.
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Mon, 27 Nov 2017 15:27:31 +0100 |
parents | afe0ecdb0692 |
children | 188c82b6690b |
line wrap: on
line diff
--- a/include/freeDiameter/libfdcore.h Mon Nov 27 15:22:42 2017 +0100 +++ b/include/freeDiameter/libfdcore.h Mon Nov 27 15:27:31 2017 +0100 @@ -1154,6 +1154,10 @@ /* Use the following function to retrieve any pmd structure associated with a request matching the current answer. Returns NULL in case of error / no such structure */ struct fd_hook_permsgdata * fd_hook_get_request_pmd(struct fd_hook_data_hdl *data_hdl, struct msg * answer); +/* Use the following function to retrieve any pmd structure associated with a request. Returns NULL in case of error */ +struct fd_hook_permsgdata * fd_hook_get_pmd(struct fd_hook_data_hdl *data_hdl, struct msg * msg); + + /* The following is used by HOOK_MASK macro */ uint32_t fd_hook_mask_helper(int dummy, ...);