summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking.h
AgeCommit message (Collapse)AuthorFilesLines
2020-01-13Update copyright headers for year 2020Haru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2020-01-09Fix redefine HPM structs in multy file pluginsAndrei Karas1-0/+4
2019-04-18Restore the ability for HPM Hooks to hook to private interfacesIbrahim Zidan1-0/+10
- Starting from 5db7c799055c6ae9c4463f6cf4c88a35597d5d31 the ability to hook to private interfaces was removed, this commit restores this ability by introducing two new macros specifically for this. - addHookPrePriv to add a pre-hook for private interface member - addHookPostPriv to add a post-hook for private interface member Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2016-04-30Added type-checking for the addHookPre() and addHookPost() macrosHaru1-2/+12
- The macros will now throw a warning at compile time if a plugin is using a wrong function type for a pre or post hook. This avoids some very subtle, hard to detect, issues. - The macros now require 3 arguments instead of 2. Example: old code: addHookPre("ifname->function" my_hook); becomes: addHookPre(ifname, function, my_hook); Signed-off-by: Haru <haru@dotalux.com>
2016-04-30Moved HPMHooking-related definitions to plugins/HPMHooking.hHaru1-0/+55
- Plugins that want to make use of the HPMHooking must now include "plugins/HPMHooking.h". Signed-off-by: Haru <haru@dotalux.com>