summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking.h
AgeCommit message (Collapse)AuthorFilesLines
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>