summaryrefslogtreecommitdiff
path: root/lib/frrlua.c
diff options
context:
space:
mode:
authorDonald Lee <dlqs@gmx.com>2021-06-20 08:06:16 +0800
committerDonald Lee <dlqs@gmx.com>2021-06-22 05:03:12 +0800
commit7e058da5bc23555d8dca571f7ee10b4cc171dd8c (patch)
tree23258b6d9df54c3dae7dd3f0179592a98dca5b43 /lib/frrlua.c
parentb7da61c1d1b2824b139bfce73b1d6849d4b75b6a (diff)
lib: Add lua noop decoder
Use this noop decoder for const values (since we can't mutate a const value passed into frrscript_call anyways) or values we don't want to write a decoder for. Signed-off-by: Donald Lee <dlqs@gmx.com>
Diffstat (limited to 'lib/frrlua.c')
-rw-r--r--lib/frrlua.c4
1 files changed, 4 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.
*