summaryrefslogtreecommitdiff
path: root/lib/frrlua.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2020-11-29 01:50:03 -0500
committerQuentin Young <qlyoung@nvidia.com>2020-12-01 18:37:14 -0500
commita3ce06c40b0fc8f7ec695393d099f2ed35a5c8fd (patch)
treefd34965819a00bd7026b2d41997c7f020e5455d2 /lib/frrlua.h
parent9f79b3758dc305264623c779a677415572bc4d68 (diff)
lib: update script encoder signatures
Update the two test functions that encode a prefix and an interface to match the encoder_func signature expected by the scripting infra. Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'lib/frrlua.h')
-rw-r--r--lib/frrlua.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/frrlua.h b/lib/frrlua.h
index 37e8e8635b..029e6ecee8 100644
--- a/lib/frrlua.h
+++ b/lib/frrlua.h
@@ -37,12 +37,12 @@ extern "C" {
*
* Additionally sets the global variable "prefix" to point at this table.
*/
-void frrlua_newtable_prefix(lua_State *L, const struct prefix *prefix);
+int frrlua_newtable_prefix(lua_State *L, const struct prefix *prefix);
/*
* Pushes a new table containing relevant fields from an interface structure.
*/
-void frrlua_newtable_interface(lua_State *L, const struct interface *ifp);
+int frrlua_newtable_interface(lua_State *L, const struct interface *ifp);
/*
* Retrieve a string from table on the top of the stack.