libs/iwinfo: make lua wrapper functions static
This commit is contained in:
parent
444e39b093
commit
20cadd41ca
2 changed files with 5 additions and 5 deletions
|
@ -19,7 +19,7 @@
|
||||||
#include "iwinfo_lualib.h"
|
#include "iwinfo_lualib.h"
|
||||||
|
|
||||||
/* Determine type */
|
/* Determine type */
|
||||||
int iwinfo_L_type(lua_State *L)
|
static int iwinfo_L_type(lua_State *L)
|
||||||
{
|
{
|
||||||
const char *ifname = luaL_checkstring(L, 1);
|
const char *ifname = luaL_checkstring(L, 1);
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ int iwinfo_L_type(lua_State *L)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Wrapper for assoclist */
|
/* Wrapper for assoclist */
|
||||||
int iwinfo_L_assoclist(lua_State *L, int (*func)(const char *, char *, int *))
|
static int iwinfo_L_assoclist(lua_State *L, int (*func)(const char *, char *, int *))
|
||||||
{
|
{
|
||||||
int i, len;
|
int i, len;
|
||||||
char rv[IWINFO_BUFSIZE];
|
char rv[IWINFO_BUFSIZE];
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
{ #op, iwinfo_L_##type##_##op }
|
{ #op, iwinfo_L_##type##_##op }
|
||||||
|
|
||||||
#define LUA_WRAP_INT(type,op) \
|
#define LUA_WRAP_INT(type,op) \
|
||||||
int iwinfo_L_##type##_##op(lua_State *L) \
|
static int iwinfo_L_##type##_##op(lua_State *L) \
|
||||||
{ \
|
{ \
|
||||||
const char *ifname = luaL_checkstring(L, 1); \
|
const char *ifname = luaL_checkstring(L, 1); \
|
||||||
int rv; \
|
int rv; \
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#define LUA_WRAP_STRING(type,op) \
|
#define LUA_WRAP_STRING(type,op) \
|
||||||
int iwinfo_L_##type##_##op(lua_State *L) \
|
static int iwinfo_L_##type##_##op(lua_State *L) \
|
||||||
{ \
|
{ \
|
||||||
const char *ifname = luaL_checkstring(L, 1); \
|
const char *ifname = luaL_checkstring(L, 1); \
|
||||||
char rv[IWINFO_BUFSIZE]; \
|
char rv[IWINFO_BUFSIZE]; \
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#define LUA_WRAP_ASSOCLIST(type) \
|
#define LUA_WRAP_ASSOCLIST(type) \
|
||||||
int iwinfo_L_##type##_assoclist(lua_State *L) \
|
static int iwinfo_L_##type##_assoclist(lua_State *L)\
|
||||||
{ \
|
{ \
|
||||||
return iwinfo_L_assoclist(L, \
|
return iwinfo_L_assoclist(L, \
|
||||||
type##_get_assoclist); \
|
type##_get_assoclist); \
|
||||||
|
|
Loading…
Reference in a new issue