]>
Commit | Line | Data |
---|---|---|
4f7e32ba DL |
1 | /* |
2 | * frrscript encoders and decoders for data structures in Zebra | |
3 | * Copyright (C) 2021 Donald Lee | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify it | |
6 | * under the terms of the GNU General Public License as published by the Free | |
7 | * Software Foundation; either version 2 of the License, or (at your option) | |
8 | * any later version. | |
9 | * | |
10 | * This program is distributed in the hope that it will be useful, but WITHOUT | |
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
13 | * more details. | |
14 | * | |
15 | * You should have received a copy of the GNU General Public License along | |
16 | * with this program; see the file COPYING; if not, write to the Free Software | |
17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
18 | */ | |
19 | ||
20 | #ifndef _ZEBRA_SCRIPT_H | |
21 | #define _ZEBRA_SCRIPT_H | |
22 | ||
23 | #include "zebra.h" | |
24 | #include "zebra/zebra_dplane.h" | |
25 | #include "zebra/zebra_pbr.h" | |
26 | ||
27 | #ifdef HAVE_SCRIPTING | |
28 | ||
29 | #include "frrlua.h" | |
30 | ||
31 | void zebra_script_init(void); | |
32 | ||
33 | void zebra_script_destroy(void); | |
34 | ||
35 | void lua_pushnh_grp(lua_State *L, const struct nh_grp *nh_grp); | |
36 | ||
37 | void lua_pushzebra_dplane_ctx(lua_State *L, const struct zebra_dplane_ctx *ctx); | |
38 | ||
39 | #endif /* HAVE_SCRIPTING */ | |
40 | ||
41 | #endif /* _ZEBRA_SCRIPT_H */ |