From 6dae03d731357072dbf56e96c7ba5d368731b8c2 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 5 Mar 2016 18:07:54 +0100 Subject: [PATCH] Hook: Must provide name, gets reference to configuration --- libimagstore/src/hook/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libimagstore/src/hook/mod.rs b/libimagstore/src/hook/mod.rs index 6a9bb357..57279ccb 100644 --- a/libimagstore/src/hook/mod.rs +++ b/libimagstore/src/hook/mod.rs @@ -14,6 +14,7 @@ pub mod result; use hook::accessor::HookDataAccessorProvider; pub trait Hook : HookDataAccessorProvider + Debug + Send + Sync { - fn set_config(&mut self, cfg: Value); + fn name(&self) -> &'static str; + fn set_config(&mut self, cfg: &Value); }