diff options
author | Ole Troan <ot@cisco.com> | 2022-12-06 14:41:41 +0100 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2022-12-07 10:34:04 +0000 |
commit | fe1fb3c31aa5f42c213eaa0c51f9d5a2cef07711 (patch) | |
tree | 1af8d6173214a7d4dff9a4e0210fc1108aaa71de /src/vat2/plugin.c | |
parent | bcdde1a0a12b33b640be7e28cd93afc4125221ca (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.c | 5 |
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; |