acl: rework headers to enable out-of-tree usage

Change-Id: I1f8adf1f5650ab6c04e03c95d7a8d0bfa39b5f2d
Type: improvement
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
This commit is contained in:
Mohammed Hawari
2024-03-14 22:51:55 +01:00
committed by Andrew Yourtchenko
parent 7c2a3357f3
commit dcb5eb5a18
4 changed files with 19 additions and 8 deletions

View File

@@ -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
)

View File

@@ -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 */

View File

@@ -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

View File

@@ -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) \
({ \