2 * plugin.h: plugin handling
4 * Copyright (c) 2015 Cisco and/or its affiliates.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #ifndef __included_plugin_h__
19 #define __included_plugin_h__
21 #include <sys/types.h>
28 struct stat file_info;
34 /* loaded plugin info */
35 plugin_info_t *plugin_info;
36 uword *plugin_by_name_hash;
38 /* paths and name filters */
40 u8 *plugin_name_filter;
42 u8 *vat_plugin_name_filter;
44 /* plugin configs and hash by name */
45 plugin_config_t *configs;
46 uword *config_index_by_name;
49 vlib_main_t *vlib_main;
52 extern plugin_main_t vat_plugin_main;
54 int vat_plugin_init (vat_main_t * vam);
55 int vat_load_new_plugins (plugin_main_t * pm);
60 * fd.io coding-style-patch-verification: ON
63 * eval: (c-set-style "gnu")