summaryrefslogtreecommitdiff
path: root/lib/frrlua.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/frrlua.h')
-rw-r--r--lib/frrlua.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/frrlua.h b/lib/frrlua.h
index f77842b445..bc017b6441 100644
--- a/lib/frrlua.h
+++ b/lib/frrlua.h
@@ -74,6 +74,13 @@ int frrlua_table_get_integer(lua_State *L, const char *key);
*/
void frrlua_export_logging(lua_State *L);
+/*
+ * Dump Lua stack to a string.
+ *
+ * Return value must be freed with XFREE(MTYPE_TMP, ...);
+ */
+char *frrlua_stackdump(lua_State *L);
+
#ifdef __cplusplus
}
#endif