hooks: Allow to remove hooking (and/or trace)
[src/app-framework-binder.git] / src / afb-hook.h
index 76022ed..9131621 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017, 2018 "IoT.bzh"
+ * Copyright (C) 2016-2019 "IoT.bzh"
  * Author José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,6 +17,8 @@
 
 #pragma once
 
+#if WITH_AFB_HOOK  /***********************************************************/
+
 #include <stdarg.h>
 #include <time.h>
 
@@ -459,3 +461,4 @@ extern struct afb_hook_global *afb_hook_addref_global(struct afb_hook_global *ho
 extern void afb_hook_unref_global(struct afb_hook_global *hook);
 
 
+#endif /* WITH_AFB_HOOK *******************************************************/