The HOOK_CALL_FUNCTION plugin hook is now also triggered for builtin

functions.
This commit is contained in:
Robin Sommer 2014-07-22 00:24:43 +02:00
parent 8ea8359607
commit 9e74fcaf2a
3 changed files with 555 additions and 46 deletions

View file

@ -70,6 +70,9 @@ public:
protected:
Func();
// Helper function for handling result of plugin hook.
Val* HandlePluginResult(Val* plugin_result, val_list* args, function_flavor flavor) const;
DECLARE_ABSTRACT_SERIAL(Func);
vector<Body> bodies;
@ -100,7 +103,6 @@ public:
protected:
BroFunc() : Func(BRO_FUNC) {}
Stmt* AddInits(Stmt* body, id_list* inits);
Val* HandlePluginResult(Val* plugin_result, val_list* args) const;
DECLARE_SERIAL(BroFunc);