fateshare: a plugin for managing child processes
[vpp.git] / src / plugins / fateshare / fateshare.h
1
2 /*
3  * fateshare.h - skeleton vpp engine plug-in header file
4  *
5  * Copyright (c) 2022 Cisco and/or its affiliates.
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at:
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #ifndef __included_fateshare_h__
19 #define __included_fateshare_h__
20
21 #include <vnet/vnet.h>
22 #include <vnet/ip/ip.h>
23
24 #include <vppinfra/hash.h>
25 #include <vppinfra/error.h>
26
27 typedef struct
28 {
29   /* convenience */
30   vlib_main_t *vlib_main;
31
32   u8 *monitor_cmd;
33   u8 *monitor_logfile;
34   pid_t monitor_pid;
35   u8 **commands;
36 } fateshare_main_t;
37
38 extern fateshare_main_t fateshare_main;
39
40 #endif /* __included_fateshare_h__ */
41
42 /*
43  * fd.io coding-style-patch-verification: ON
44  *
45  * Local Variables:
46  * eval: (c-set-style "gnu")
47  * End:
48  */