diff options
author | Mohammed Hawari <mohammed@hawari.fr> | 2024-03-14 22:51:55 +0100 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2024-03-28 16:56:32 +0000 |
commit | dcb5eb5a18bf42cb4d39ae29822664f2cb57622c (patch) | |
tree | 22888d08d89d02c05ccf16f759a0c19dd511e196 | |
parent | 7c2a3357f32ae02bcc20cdad6d87beda39f71d31 (diff) |
acl: rework headers to enable out-of-tree usage
Change-Id: I1f8adf1f5650ab6c04e03c95d7a8d0bfa39b5f2d
Type: improvement
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
-rw-r--r-- | src/plugins/acl/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/plugins/acl/exports.h | 6 | ||||
-rw-r--r-- | src/plugins/acl/fa_node.h | 2 | ||||
-rw-r--r-- | src/plugins/acl/public_inlines.h | 8 |
4 files changed, 19 insertions, 8 deletions
diff --git a/src/plugins/acl/CMakeLists.txt b/src/plugins/acl/CMakeLists.txt index c43dd23ea51..1bb60d94fbe 100644 --- a/src/plugins/acl/CMakeLists.txt +++ b/src/plugins/acl/CMakeLists.txt @@ -30,4 +30,15 @@ add_vpp_plugin(acl API_TEST_SOURCES acl_test.c + + INSTALL_HEADERS + exports.h + exported_types.h + acl.h + fa_node.h + public_inlines.h + types.h + hash_lookup_types.h + lookup_context.h + hash_lookup_private.h ) diff --git a/src/plugins/acl/exports.h b/src/plugins/acl/exports.h index d904ad3bbae..04159aa052d 100644 --- a/src/plugins/acl/exports.h +++ b/src/plugins/acl/exports.h @@ -24,8 +24,8 @@ #include <vlib/unix/plugin.h> -#include <plugins/acl/acl.h> -#include <plugins/acl/fa_node.h> -#include <plugins/acl/public_inlines.h> +#include "acl.h" +#include "fa_node.h" +#include "public_inlines.h" #endif /* included_acl_exports_h */ diff --git a/src/plugins/acl/fa_node.h b/src/plugins/acl/fa_node.h index c969377ded7..c4a971aada3 100644 --- a/src/plugins/acl/fa_node.h +++ b/src/plugins/acl/fa_node.h @@ -5,7 +5,7 @@ #include <vppinfra/bihash_16_8.h> #include <vppinfra/bihash_40_8.h> -#include <plugins/acl/exported_types.h> +#include "exported_types.h" // #define FA_NODE_VERBOSE_DEBUG 3 diff --git a/src/plugins/acl/public_inlines.h b/src/plugins/acl/public_inlines.h index 6b69bcef61e..eb9f0de920f 100644 --- a/src/plugins/acl/public_inlines.h +++ b/src/plugins/acl/public_inlines.h @@ -19,11 +19,11 @@ #include <stdint.h> #include <vlib/unix/plugin.h> -#include <plugins/acl/acl.h> -#include <plugins/acl/fa_node.h> -#include <plugins/acl/hash_lookup_private.h> +#include "acl.h" +#include "fa_node.h" +#include "hash_lookup_private.h" -#include <plugins/acl/exported_types.h> +#include "exported_types.h" #define LOAD_SYMBOL_FROM_PLUGIN_TO(p, s, st) \ ({ \ |