Hooks: Implement "Hooks v2" API

- All hook scripts now receive key:value pair command line arguments.
- Add only the basics: api, args, command, rc, data.  Possibly more to
  come.
This commit is contained in:
Wilhelm Schuermann 2015-04-01 11:44:37 +02:00
parent 5d4859c44d
commit 04d0c52a43
2 changed files with 27 additions and 0 deletions

View file

@ -57,6 +57,7 @@ private:
void assertNTasks (const std::vector <std::string>&, unsigned int) const;
void assertSameTask (const std::vector <std::string>&, const Task&) const;
void assertFeedback (const std::vector <std::string>&) const;
std::vector <std::string>& buildHookScriptArgs (std::vector <std::string>&);
int callHookScript (const std::string&, const std::vector <std::string>&, std::vector <std::string>&);
private: