aboutsummaryrefslogtreecommitdiffstats
path: root/src/vat2/plugin.c
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2022-12-06 14:41:41 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2022-12-07 10:34:04 +0000
commitfe1fb3c31aa5f42c213eaa0c51f9d5a2cef07711 (patch)
tree1af8d6173214a7d4dff9a4e0210fc1108aaa71de /src/vat2/plugin.c
parentbcdde1a0a12b33b640be7e28cd93afc4125221ca (diff)
vat2: add plugin-path parameter
Add plugin-path parameter to aid external plugin development. Multiple directories are supported as a colon separated list. Type: improvement Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Ida35dedceccd0019ea68e56f7a3672c530258447
Diffstat (limited to 'src/vat2/plugin.c')
-rw-r--r--src/vat2/plugin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vat2/plugin.c b/src/vat2/plugin.c
index 3ad870519da..aaaf6940ef3 100644
--- a/src/vat2/plugin.c
+++ b/src/vat2/plugin.c
@@ -76,8 +76,9 @@ load_one_plugin (plugin_info_t * pi)
return 0;
}
+/* Takes a vector as argument */
static u8 **
-split_plugin_path (char *plugin_path)
+split_plugin_path (u8 *plugin_path)
{
int i;
u8 **rv = 0;
@@ -104,7 +105,7 @@ split_plugin_path (char *plugin_path)
}
int
-vat2_load_plugins (char *path, char *filter, int *loaded)
+vat2_load_plugins (u8 *path, char *filter, int *loaded)
{
DIR *dp;
struct dirent *entry;