summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/frrlua.c4
-rw-r--r--lib/frrlua.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/frrlua.c b/lib/frrlua.c
index 9fb744cde2..d6a0ef328e 100644
--- a/lib/frrlua.c
+++ b/lib/frrlua.c
@@ -290,6 +290,10 @@ void *lua_tostringp(lua_State *L, int idx)
return string;
}
+void lua_decode_noop(lua_State *L, int idx, const void *ptr)
+{
+}
+
/*
* Logging.
*
diff --git a/lib/frrlua.h b/lib/frrlua.h
index 3ca5b1f778..c4de82740c 100644
--- a/lib/frrlua.h
+++ b/lib/frrlua.h
@@ -162,6 +162,11 @@ void lua_decode_stringp(lua_State *L, int idx, char *str);
void *lua_tostringp(lua_State *L, int idx);
/*
+ * No-op decocder
+ */
+void lua_decode_noop(lua_State *L, int idx, const void *ptr);
+
+/*
* Retrieve an integer from table on the top of the stack.
*
* key