- Stubbed new ::onAdd and ::onModify interfaces.
This commit is contained in:
Paul Beckingham 2014-09-14 15:42:47 -04:00
parent 7b617a7b6e
commit ab72cdad4d
3 changed files with 15 additions and 10 deletions

View file

@ -197,8 +197,9 @@ void Hooks::onExit ()
// - all emitted non-JSON lines are considered feedback messages if the exit
// code is zero, otherwise they are considered errors.
//
void Hooks::onAdd (Task& after)
void Hooks::onAdd (std::vector <Task>& changes)
{
/*
context.timer_hooks.start ();
if (! _enabled)
return;
@ -249,6 +250,7 @@ void Hooks::onAdd (Task& after)
}
context.timer_hooks.stop ();
*/
}
////////////////////////////////////////////////////////////////////////////////
@ -266,8 +268,9 @@ void Hooks::onAdd (Task& after)
// - all emitted non-JSON lines are considered feedback messages if the exit
// code is zero, otherwise they are considered errors.
//
void Hooks::onModify (const Task& before, Task& after)
void Hooks::onModify (const Task& before, std::vector <Task>& changes)
{
/*
context.timer_hooks.start ();
if (! _enabled)
return;
@ -322,6 +325,7 @@ void Hooks::onModify (const Task& before, Task& after)
}
context.timer_hooks.stop ();
*/
}
////////////////////////////////////////////////////////////////////////////////