diff --git a/src/Context.cpp b/src/Context.cpp index 7a2e21c8d..86b24bc52 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -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) diff --git a/src/Hooks.cpp b/src/Hooks.cpp index 0609b826e..7bf981439 100644 --- a/src/Hooks.cpp +++ b/src/Hooks.cpp @@ -40,5 +40,11 @@ Hooks::~Hooks () { } +//////////////////////////////////////////////////////////////////////////////// +void Hooks::initialize () +{ + // TODO Scan /hooks +} + // TODO Time the hook runs. //////////////////////////////////////////////////////////////////////////////// diff --git a/src/Hooks.h b/src/Hooks.h index 6103fffab..8ce5954a9 100644 --- a/src/Hooks.h +++ b/src/Hooks.h @@ -35,6 +35,8 @@ public: Hooks (const Hooks&); // Deliberately unimplemented Hooks& operator= (const Hooks&); // Deliberately unimplemented + void initialize (); + private: };