- Added ::initialize method.
This commit is contained in:
Paul Beckingham 2014-05-13 16:31:27 -04:00
parent bfb19e0a64
commit 6cff8d9ff6
3 changed files with 9 additions and 5 deletions

View file

@ -221,12 +221,8 @@ int Context::initialize (int argc, const char** argv)
// Initialize the database.
tdb2.set_location (data_dir);
/*
// Hook system init, plus post-start event occurring at the first possible
// moment after hook initialization.
// First opportunity to run a hook script.
hooks.initialize ();
hooks.trigger ("on-launch");
*/
}
catch (const std::string& message)

View file

@ -40,5 +40,11 @@ Hooks::~Hooks ()
{
}
////////////////////////////////////////////////////////////////////////////////
void Hooks::initialize ()
{
// TODO Scan <rc.data.location>/hooks
}
// TODO Time the hook runs.
////////////////////////////////////////////////////////////////////////////////

View file

@ -35,6 +35,8 @@ public:
Hooks (const Hooks&); // Deliberately unimplemented
Hooks& operator= (const Hooks&); // Deliberately unimplemented
void initialize ();
private:
};