summaryrefslogtreecommitdiffstats
path: root/lib/frrscript.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2020-11-29 20:51:52 +0100
committerQuentin Young <qlyoung@nvidia.com>2020-12-02 00:37:14 +0100
commit9e47ee98a3de9c7c3f6ee4eb527f59015a5515b5 (patch)
treeb783a74b8f1914c228af1123a03a085c2da94c2b /lib/frrscript.h
parentlib: better load-time error handling for scripts (diff)
downloadfrr-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.h3
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 */