Implement task #14367: Hooks need a better place to be defined

We now have a #define for a header file name that is #included in every .c file that provides hooks.
This commit is contained in:
Dirk Ziegelmeier
2017-02-10 13:25:04 +01:00
committed by goldsimon
parent b3293d903e
commit 76efa271e6
9 changed files with 41 additions and 1 deletions

View File

@@ -2415,6 +2415,15 @@
* @{
*/
/**
* LWIP_HOOK_FILENAME: Custom filename to #include in files that provide hooks.
* Declare your hook function prototypes in there, you may also #include all headers
* providing data types that are need in this file.
*/
#ifdef __DOXYGEN__
#define LWIP_HOOK_FILENAME "path/to/my/lwip_hooks.h"
#endif
/**
* LWIP_HOOK_TCP_ISN:
* Hook for generation of the Initial Sequence Number (ISN) for a new TCP