diff options
| author | Quentin Young <qlyoung@nvidia.com> | 2020-11-29 17:43:16 -0500 |
|---|---|---|
| committer | Quentin Young <qlyoung@nvidia.com> | 2020-12-01 18:37:14 -0500 |
| commit | 47dd87363292e326e971d53f4a3b9e58edb6a3c6 (patch) | |
| tree | 0632599999b4587b6b15d3073c09a05bf5b9c124 /lib/frrlua.h | |
| parent | 42ae55b5d4dcfed694862b969e8c6fb201418a0d (diff) | |
lib: change encoder_func signature
None of the core lua_push* functions return anything, and it helps to
not have to wrap those when using them as function pointers for our
encoder system, so change the type of our custom encoders to return void
as well.
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'lib/frrlua.h')
| -rw-r--r-- | lib/frrlua.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/frrlua.h b/lib/frrlua.h index a411751172..8db5cec586 100644 --- a/lib/frrlua.h +++ b/lib/frrlua.h @@ -35,34 +35,34 @@ extern "C" { /* * Pushes a new table containing relevant fields from a prefix structure. */ -int lua_pushprefix(lua_State *L, const struct prefix *prefix); +void lua_pushprefix(lua_State *L, const struct prefix *prefix); /* * Pushes a new table containing relevant fields from an interface structure. */ -int lua_pushinterface(lua_State *L, const struct interface *ifp); +void lua_pushinterface(lua_State *L, const struct interface *ifp); /* * Pushes a new table containing both numeric and string representations of an * in_addr to the stack. */ -int lua_pushinaddr(lua_State *L, const struct in_addr *addr); +void lua_pushinaddr(lua_State *L, const struct in_addr *addr); /* * Pushes a new table containing both numeric and string representations of an * in6_addr to the stack. */ -int lua_pushin6addr(lua_State *L, const struct in6_addr *addr); +void lua_pushin6addr(lua_State *L, const struct in6_addr *addr); /* * Pushes a time_t to the stack. */ -int lua_pushtimet(lua_State *L, const time_t *time); +void lua_pushtimet(lua_State *L, const time_t *time); /* * Pushes a table representing a sockunion to the stack. */ -int lua_pushsockunion(lua_State *L, const union sockunion *su); +void lua_pushsockunion(lua_State *L, const union sockunion *su); /* * Retrieve an integer from table on the top of the stack. |
