diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2018-08-09 22:50:19 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2021-02-01 17:18:02 +0100 |
| commit | 8e427c293860576df43ead3639bac807e2a43b03 (patch) | |
| tree | 88a02353048fce9fb350d7a1231322fb5830d5c7 /lib/module.h | |
| parent | 3c191fb1387ece2265b8ac7c1e102904148ebed9 (diff) | |
lib: "xref" identifier infrastructure
This adds the machinery for cross reference points (hence "xref") for
things to be annotated with source code location or other metadata
and/or to be uniquely identified and found at runtime or by dissecting
executable files.
The extraction tool to walk down an ELF file is done and working but
needs some more cleanup and will be added in a separate commit.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/module.h')
| -rw-r--r-- | lib/module.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/module.h b/lib/module.h index 79cf52d75a..5d8d9cfbcc 100644 --- a/lib/module.h +++ b/lib/module.h @@ -20,6 +20,9 @@ #include <stdint.h> #include <stdbool.h> +#include "compiler.h" +#include "xref.h" + #ifdef __cplusplus extern "C" { #endif @@ -75,7 +78,10 @@ extern union _frrmod_runtime_u _frrmod_this_module; DSO_LOCAL union _frrmod_runtime_u _frrmod_this_module = {{ \ NULL, \ &_frrmod_info, \ - }}; + }}; \ + XREF_SETUP() \ + /* end */ + #define FRR_MODULE_SETUP(...) \ FRR_COREMOD_SETUP(__VA_ARGS__) \ DSO_SELF struct frrmod_runtime *frr_module = &_frrmod_this_module.r; |
