diff options
| author | Quentin Young <qlyoung@nvidia.com> | 2020-11-29 14:51:52 -0500 |
|---|---|---|
| committer | Quentin Young <qlyoung@nvidia.com> | 2020-12-01 18:37:14 -0500 |
| commit | 9e47ee98a3de9c7c3f6ee4eb527f59015a5515b5 (patch) | |
| tree | b783a74b8f1914c228af1123a03a085c2da94c2b /lib/frrscript.h | |
| parent | 224782816d52af6926122c7a036c66ac23e759a7 (diff) | |
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 39eebe6e46..21cd352881 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 */ |
