summaryrefslogtreecommitdiff
path: root/lib/frrlua.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2020-11-29 18:00:35 -0500
committerQuentin Young <qlyoung@nvidia.com>2020-12-01 18:37:14 -0500
commiteeb61724232734b1ed26523589060b2b471d3584 (patch)
treef0a64620cf3a29b7df0dd5d3a7c75ec9d102f98b /lib/frrlua.c
parent47dd87363292e326e971d53f4a3b9e58edb6a3c6 (diff)
lib: add more type encoders, register existings
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'lib/frrlua.c')
-rw-r--r--lib/frrlua.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/frrlua.c b/lib/frrlua.c
index c8a04fb3dc..dd468a3def 100644
--- a/lib/frrlua.c
+++ b/lib/frrlua.c
@@ -150,6 +150,11 @@ void lua_pushtimet(lua_State *L, const time_t *time)
lua_pushinteger(L, *time);
}
+void lua_pushintegerp(lua_State *L, const int *num)
+{
+ lua_pushinteger(L, *num);
+}
+
/*
* Logging.
*