diff options
| author | Quentin Young <qlyoung@nvidia.com> | 2020-11-29 18:00:35 -0500 |
|---|---|---|
| committer | Quentin Young <qlyoung@nvidia.com> | 2020-12-01 18:37:14 -0500 |
| commit | eeb61724232734b1ed26523589060b2b471d3584 (patch) | |
| tree | f0a64620cf3a29b7df0dd5d3a7c75ec9d102f98b /lib/frrlua.h | |
| parent | 47dd87363292e326e971d53f4a3b9e58edb6a3c6 (diff) | |
lib: add more type encoders, register existings
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'lib/frrlua.h')
| -rw-r--r-- | lib/frrlua.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/frrlua.h b/lib/frrlua.h index 8db5cec586..f9ab5509a6 100644 --- a/lib/frrlua.h +++ b/lib/frrlua.h @@ -65,6 +65,12 @@ void lua_pushtimet(lua_State *L, const time_t *time); void lua_pushsockunion(lua_State *L, const union sockunion *su); /* + * Push integer. This just wraps lua_pushinteger(), but it takes a pointer, so + * as to be compatible with the encoder_func signature. + */ +void lua_pushintegerp(lua_State *L, const int *num); + +/* * Retrieve an integer from table on the top of the stack. * * key |
