diff options
author | Quentin Young <qlyoung@nvidia.com> | 2020-11-29 20:51:52 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@nvidia.com> | 2020-12-02 00:37:14 +0100 |
commit | 9e47ee98a3de9c7c3f6ee4eb527f59015a5515b5 (patch) | |
tree | b783a74b8f1914c228af1123a03a085c2da94c2b /lib/frrscript.h | |
parent | lib: better load-time error handling for scripts (diff) | |
download | frr-9e47ee98a3de9c7c3f6ee4eb527f59015a5515b5.tar.xz frr-9e47ee98a3de9c7c3f6ee4eb527f59015a5515b5.zip |
lib: cleanup / refactor scripting foo
- fix 'struct lua_State'
- change includes to library style
- rename encoder funcs to look like lua_push* funcs
- fix erroneous doc comment on prefix encoder
- remove unused (and broken) convenience func
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'lib/frrscript.h')
-rw-r--r-- | lib/frrscript.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/frrscript.h b/lib/frrscript.h index 39eebe6e4..21cd35288 100644 --- a/lib/frrscript.h +++ b/lib/frrscript.h @@ -19,6 +19,7 @@ #ifndef __FRRSCRIPT_H__ #define __FRRSCRIPT_H__ +#include <lua.h> #include "frrlua.h" #ifdef __cplusplus @@ -27,7 +28,7 @@ extern "C" { #define FRRSCRIPT_PATH "/etc/frr/scripts" -typedef int (*encoder_func)(struct lua_State *, const void *); +typedef int (*encoder_func)(lua_State *, const void *); struct frrscript { /* Script name */ |